public enum UuidRepresentation extends Enum<UuidRepresentation>
Enum Constant and Description |
---|
C_SHARP_LEGACY
The legacy representation of UUID used by the C# driver
BSON binary subtype 3
|
JAVA_LEGACY
The legacy representation of UUID used by the Java driver
BSON binary subtype 3
|
PYTHON_LEGACY
The legacy representation of UUID used by the Python driver, which is the same
format as STANDARD, but has the UUID old BSON subtype (\x03)
BSON binary subtype 3
|
STANDARD
The canonical representation of UUID
BSON binary subtype 4
|
Modifier and Type | Method and Description |
---|---|
static UuidRepresentation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UuidRepresentation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UuidRepresentation STANDARD
public static final UuidRepresentation C_SHARP_LEGACY
public static final UuidRepresentation JAVA_LEGACY
public static final UuidRepresentation PYTHON_LEGACY
public static UuidRepresentation[] values()
for (UuidRepresentation c : UuidRepresentation.values()) System.out.println(c);
public static UuidRepresentation 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 null