com.fasterxml.uuid
Enum UUIDType
java.lang.Object
java.lang.Enum<UUIDType>
com.fasterxml.uuid.UUIDType
- All Implemented Interfaces:
- Serializable, Comparable<UUIDType>
public enum UUIDType
- extends Enum<UUIDType>
Enumeration of different flavors of UUIDs: 5 specified by specs
(RFC-4122)
and one
virtual entry ("UNKNOWN") to represent invalid one that consists of
all zero bites
Method Summary |
int |
raw()
Returns "raw" type constants, embedded within UUID bytes. |
static UUIDType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static UUIDType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
TIME_BASED
public static final UUIDType TIME_BASED
DCE
public static final UUIDType DCE
NAME_BASED_MD5
public static final UUIDType NAME_BASED_MD5
RANDOM_BASED
public static final UUIDType RANDOM_BASED
NAME_BASED_SHA1
public static final UUIDType NAME_BASED_SHA1
UNKNOWN
public static final UUIDType UNKNOWN
values
public static UUIDType[] 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 (UUIDType c : UUIDType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static UUIDType 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 name
NullPointerException
- if the argument is null
raw
public int raw()
- Returns "raw" type constants, embedded within UUID bytes.
Copyright © 2011 FasterXML.com. All Rights Reserved.