Searched refs:isValidPort (Results 1 – 2 of 2) sorted by relevance
132 checkArgument(isValidPort(port), "Port out of range: %s", port); in fromParts()198 checkArgument(isValidPort(port), "Port number out of range: %s", hostPortString); in fromString()253 checkArgument(isValidPort(defaultPort)); in withDefaultPort()313 private static boolean isValidPort(int port) { in isValidPort() method in HostAndPort