public class HostPortValidator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static HostPortValidator |
getInstance()
Return the singleton instance of
HostPortValidator. |
boolean |
isValid(java.lang.String hostPort)
Return true if the given string is a valid host[:port] representation.
|
public static HostPortValidator getInstance()
HostPortValidator.HostPortValidator instancepublic boolean isValid(java.lang.String hostPort)
hostPort - the string with host[:port]