- java.lang.Object
-
- java.lang.Enum<UuidLocalDomain>
-
- com.github.f4b6a3.uuid.enums.UuidLocalDomain
-
- All Implemented Interfaces:
Serializable,Comparable<UuidLocalDomain>
public enum UuidLocalDomain extends Enum<UuidLocalDomain>
Local domains defined by DCE 1.1 specification, used to create DCE Security unique identifiers (UUIDv2).List of local domains:
On POSIX systems, local-domain numbers 0 and 1 are for user identifiers (UIDs) and group identifiers (GIDs) respectively, and other local-domain numbers are site-defined.
On non-POSIX systems, all local domain numbers are site-defined.
- See Also:
- DCE Domain names, User identifier, Group identifier
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOCAL_DOMAIN_GROUPThe group domain, interpreted as POSIX GID domain on POSIX systems.LOCAL_DOMAIN_ORGThe organization domain, site-defined.LOCAL_DOMAIN_PERSONThe principal domain, interpreted as POSIX UID domain on POSIX systems.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UuidLocalDomaingetLocalDomain(byte value)bytegetValue()static UuidLocalDomainvalueOf(String name)Returns the enum constant of this type with the specified name.static UuidLocalDomain[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOCAL_DOMAIN_PERSON
public static final UuidLocalDomain LOCAL_DOMAIN_PERSON
The principal domain, interpreted as POSIX UID domain on POSIX systems.
-
LOCAL_DOMAIN_GROUP
public static final UuidLocalDomain LOCAL_DOMAIN_GROUP
The group domain, interpreted as POSIX GID domain on POSIX systems.
-
LOCAL_DOMAIN_ORG
public static final UuidLocalDomain LOCAL_DOMAIN_ORG
The organization domain, site-defined.
-
-
Method Detail
-
values
public static UuidLocalDomain[] 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 (UuidLocalDomain c : UuidLocalDomain.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UuidLocalDomain 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
-
getValue
public byte getValue()
-
getLocalDomain
public static UuidLocalDomain getLocalDomain(byte value)
-
-