Enum HostTypeEnum
- java.lang.Object
-
- java.lang.Enum<HostTypeEnum>
-
- org.apache.directory.api.ldap.model.url.HostTypeEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<HostTypeEnum>
public enum HostTypeEnum extends Enum<HostTypeEnum>
The type of Host we may have . One of :- IPV4 : IPV4 host
- IPV6 : IPV6 host
- IPV_FUTURE : IP v Future host
- REGULAR_NAME : A regular name
- Author:
- Apache Directory Project
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IPV_FUTURE
IP V(future) hostIPV4
IP V4 hostIPV6
IP V6 hostREGULAR_NAME
Regular name host
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HostTypeEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static HostTypeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IPV4
public static final HostTypeEnum IPV4
IP V4 host
-
IPV6
public static final HostTypeEnum IPV6
IP V6 host
-
IPV_FUTURE
public static final HostTypeEnum IPV_FUTURE
IP V(future) host
-
REGULAR_NAME
public static final HostTypeEnum REGULAR_NAME
Regular name host
-
-
Method Detail
-
values
public static HostTypeEnum[] 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 (HostTypeEnum c : HostTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HostTypeEnum 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
-
-