public class IpValidationUtils extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
IpValidationUtils()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isIPAddress(String ip)
Validate IP Address
|
static boolean |
isIpV4Format(String address)
Returns true if the given string is a correctly formed IPv4 address.
|
static boolean |
isIpV6Format(String address)
Returns true if the given string is a correctly formed IPv6 address.
|
public static boolean isIPAddress(String ip)
ip - IP Address. Can be ipv4 ipv6true if the ip address is validpublic static boolean isIpV4Format(String address)
address - IP addressTrue if the String passed is a valid IP address, false
otherwisepublic static boolean isIpV6Format(String address)
address - IP addressTrue if the String passed is a valid IP address, false
otherwiseCopyright © 2019 Communote team. All rights reserved.