public class IpUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private static java.util.regex.Pattern |
IPV4_PATTERN |
private static java.util.regex.Pattern |
IPV6_PATTERN |
构造器和说明 |
---|
IpUtils() |
限定符和类型 | 方法和说明 |
---|---|
static long |
getIpv4Number(java.lang.String value) |
static java.lang.String |
getIpv4String(long value) |
static java.math.BigInteger |
getIpv6Number(java.lang.String value) |
static java.lang.String |
getIpv6String(java.math.BigInteger value) |
static boolean |
isIp(java.lang.String value) |
static boolean |
isIpv4(java.lang.String value) |
static boolean |
isIpv6(java.lang.String value) |
private static java.util.regex.Pattern IPV6_PATTERN
private static java.util.regex.Pattern IPV4_PATTERN
public static long getIpv4Number(java.lang.String value)
value
- public static java.lang.String getIpv4String(long value)
value
- public static java.math.BigInteger getIpv6Number(java.lang.String value)
value
- public static java.lang.String getIpv6String(java.math.BigInteger value)
value
- public static boolean isIpv4(java.lang.String value)
value
- public static boolean isIpv6(java.lang.String value)
value
- public static boolean isIp(java.lang.String value)
value
-