|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<IPAddressType>
org.clazzes.util.net.IPAddressType
public enum IPAddressType
Describes the "nature" of an IP address stored in a string or long. It is dedicated to allow a few semantic checks, e.g. IPv4 netmasks have only 1s and than only 0s. Someday we might support IPv6 addresses.
Enum Constant Summary | |
---|---|
IPv4Address
4 byte Dotted IPv4 address, first an last byte must be non-zero. |
|
IPv4ListenAddress
Like IPv4Address, but may be 0.0.0.0 |
|
IPv4Netmask
4 byte Dotted IPv4 netmask. constists of n set bits + 32-n unset bits. |
|
IPv4Network
4 byte Dotted IPv4 network address. first byte must be non-zero, last byte must be <255 |
Method Summary | |
---|---|
static IPAddressType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static IPAddressType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final IPAddressType IPv4Address
public static final IPAddressType IPv4ListenAddress
public static final IPAddressType IPv4Netmask
public static final IPAddressType IPv4Network
Method Detail |
---|
public static IPAddressType[] values()
for (IPAddressType c : IPAddressType.values()) System.out.println(c);
public static IPAddressType 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 name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |