List of utility methods to do IP Address Validate
boolean | isIPv6StdAddress(final String input) Checks whether the parameter is a valid standard (non-compressed) IPv6 address return IPV6_STD_PATTERN.matcher(input).matches();
|
boolean | isIpValid(final String deviceIp) is Ip Valid if (Strings.isNullOrEmpty(deviceIp)) { return false; Matcher matcher = IP_PATTERN.matcher(deviceIp); return matcher.matches(); |
boolean | isIPValid(final String ipv4) is IP Valid java.util.regex.Matcher matcher = pattern.matcher(ipv4);
return matcher.matches();
|
boolean | isIpValid(String ip) is Ip Valid return "localhost".equals(ip) || IP_PATTERN.matcher(ip).matches(); |