public boolean hasPort() {
        return port != 0;
    }
Returns whether this endpoint has a port number specified.

@return {@code true} if and only if this endpoint has a port number.
core/src/main/java/com/linecorp/armeria/client/Endpoint.java