Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
getPort
Method · 0.95
getPortOrDefault
Method · 0.95
fromParts
Method · 0.95
fromHost
Method · 0.95
withDefaultPort
Method · 0.95
toString
Method · 0.95
fromValid
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected