MCPcopy Index your code
hub / github.com/antlr/codebuff / hasPort

Method hasPort

output/java_guava/1.4.17/HostAndPort.java:100–102  ·  view source on GitHub ↗

Return true if this instance has a defined port.

()

Source from the content-addressed store, hash-verified

98
99
100 public boolean hasPort() {
101 return port >= 0;
102 }
103
104 /**
105 * 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