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

Method hasPort

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

Return true if this instance has a defined port.

()

Source from the content-addressed store, hash-verified

95
96 /** Return true if this instance has a defined port. */
97 public boolean hasPort() {
98 return port >= 0;
99 }
100
101 /**
102 * Get the current port number, failing if no port is defined.

Callers 7

getPortMethod · 0.95
getPortOrDefaultMethod · 0.95
fromPartsMethod · 0.95
fromHostMethod · 0.95
withDefaultPortMethod · 0.95
toStringMethod · 0.95
fromValidMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected