protected static enum IPv4Address.Ip4Octet extends java.lang.Enum<IPv4Address.Ip4Octet>
| Modifier and Type | Method and Description |
|---|---|
byte |
isolateAsByte(int ip) |
int |
isolateAsInt(int ip) |
static IPv4Address.Ip4Octet |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IPv4Address.Ip4Octet[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IPv4Address.Ip4Octet OCTET_A
public static final IPv4Address.Ip4Octet OCTET_B
public static final IPv4Address.Ip4Octet OCTET_C
public static final IPv4Address.Ip4Octet OCTET_D
public static IPv4Address.Ip4Octet[] values()
for (IPv4Address.Ip4Octet c : IPv4Address.Ip4Octet.values()) System.out.println(c);
public static IPv4Address.Ip4Octet valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int isolateAsInt(int ip)
public byte isolateAsByte(int ip)