MCPcopy Create free account
hub / github.com/antlr/codebuff / isValidPort

Method isValidPort

corpus/java/training/guava/net/HostAndPort.java:316–318  ·  view source on GitHub ↗

Return true for valid port numbers.

(int port)

Source from the content-addressed store, hash-verified

314
315 /** Return true for valid port numbers. */
316 private static boolean isValidPort(int port) {
317 return port >= 0 && port <= 65535;
318 }
319
320 private static final long serialVersionUID = 0;
321}

Callers 3

fromPartsMethod · 0.95
fromStringMethod · 0.95
withDefaultPortMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected