Enum Class UUIDType

java.lang.Object
java.lang.Enum<UUIDType>
com.fasterxml.uuid.UUIDType
All Implemented Interfaces:
Serializable, Comparable<UUIDType>, java.lang.constant.Constable

public enum UUIDType extends Enum<UUIDType>
Enumeration of different flavors of UUIDs: 5 specified by specs (RFC-9562) and one virtual entry ("UNKNOWN") to represent invalid one that consists of all zero bites
  • Enum Constant Details

    • 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
    • TIME_BASED_REORDERED

      public static final UUIDType TIME_BASED_REORDERED
    • TIME_BASED_EPOCH

      public static final UUIDType TIME_BASED_EPOCH
    • FREE_FORM

      public static final UUIDType FREE_FORM
    • UNKNOWN

      public static final UUIDType UNKNOWN
  • Method Details

    • values

      public static UUIDType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UUIDType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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.