public class IpAddressUtils extends Object
Constructor and Description |
---|
IpAddressUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isIPv4(String ip)
Checks if the IP address is IPv4
|
static boolean |
isIPv6(String ip)
Checks if the IP address is IPv6
|
public static boolean isIPv4(String ip)
ip
- The IP address to checkpublic static boolean isIPv6(String ip)
ip
- The IP address to checkCopyright © 1997-2021 PostgreSQL Global Development Group. All Rights Reserved.