Return true if this instance has a defined port.
()
| 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. |
no outgoing calls
no test coverage detected