public enum UuidVariant extends Enum<UuidVariant>
List of variants:
VARIANT_RESERVED_NCS: 0
VARIANT_STANDARD: 2
VARIANT_RESERVED_MICROSOFT: 6
VARIANT_RESERVED_FUTURE: 7
| Enum Constant and Description |
|---|
VARIANT_RESERVED_FUTURE
Reserved for future definition.
|
VARIANT_RESERVED_MICROSOFT
Reserved for Microsoft Corporation backward compatibility.
|
VARIANT_RESERVED_NCS
Reserved for NCS backward compatibility.
|
VARIANT_STANDARD
The variant specified in RFC 9562.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Get the number value.
|
static UuidVariant |
getVariant(int value)
Get the enum value.
|
static UuidVariant |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UuidVariant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UuidVariant VARIANT_RESERVED_NCS
public static final UuidVariant VARIANT_STANDARD
public static final UuidVariant VARIANT_RESERVED_MICROSOFT
public static final UuidVariant VARIANT_RESERVED_FUTURE
public static UuidVariant[] values()
for (UuidVariant c : UuidVariant.values()) System.out.println(c);
public static UuidVariant valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
public static UuidVariant getVariant(int value)
value - a number.Copyright © 2024. All rights reserved.