Package org.cyclos.server.utils
Enum InternetAddressHelper.AddressType
- java.lang.Object
-
- java.lang.Enum<InternetAddressHelper.AddressType>
-
- org.cyclos.server.utils.InternetAddressHelper.AddressType
-
- All Implemented Interfaces:
Serializable,Comparable<InternetAddressHelper.AddressType>
- Enclosing class:
- InternetAddressHelper
public static enum InternetAddressHelper.AddressType extends Enum<InternetAddressHelper.AddressType>
The possible types for an internet address
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InternetAddressHelper.AddressTypevalueOf(String name)Returns the enum constant of this type with the specified name.static InternetAddressHelper.AddressType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HOSTNAME
public static final InternetAddressHelper.AddressType HOSTNAME
-
SIMPLE_IP
public static final InternetAddressHelper.AddressType SIMPLE_IP
-
IP_RANGE
public static final InternetAddressHelper.AddressType IP_RANGE
-
-
Method Detail
-
values
public static InternetAddressHelper.AddressType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InternetAddressHelper.AddressType c : InternetAddressHelper.AddressType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InternetAddressHelper.AddressType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-