com.fasterxml.uuid
Enum UUIDType

java.lang.Object
  extended by java.lang.Enum<UUIDType>
      extended by 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


Enum Constant Summary
DCE
           
NAME_BASED_MD5
           
NAME_BASED_SHA1
           
RANDOM_BASED
           
TIME_BASED
           
UNKNOWN
           
 
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.
 
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

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
Method Detail

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.