public static enum IPAddress.IPVersion extends Enum<IPAddress.IPVersion>
Modifier and Type | Method and Description |
---|---|
boolean |
isIPv4() |
boolean |
isIPv6() |
String |
toString() |
static IPAddress.IPVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IPAddress.IPVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IPAddress.IPVersion IPV4
public static final IPAddress.IPVersion IPV6
public static IPAddress.IPVersion[] values()
for (IPAddress.IPVersion c : IPAddress.IPVersion.values()) System.out.println(c);
public static IPAddress.IPVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isIPv4()
public boolean isIPv6()
public String toString()
toString
in class Enum<IPAddress.IPVersion>