public enum BsonBinarySubType extends Enum<BsonBinarySubType>
| Enum Constant and Description |
|---|
BINARY
Binary data.
|
FUNCTION
A function.
|
MD5
An MD5 hash.
|
OLD_BINARY
Obsolete binary data subtype (use Binary instead).
|
USER_DEFINED
User defined binary data.
|
UUID_LEGACY
A UUID in a driver dependent legacy byte order.
|
UUID_STANDARD
A UUID in standard network byte order.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getValue()
Gets the byte representation of this subtype.
|
static boolean |
isUuid(byte value)
Returns true if the given value is a UUID subtype
|
static BsonBinarySubType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BsonBinarySubType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BsonBinarySubType BINARY
public static final BsonBinarySubType FUNCTION
public static final BsonBinarySubType OLD_BINARY
public static final BsonBinarySubType UUID_LEGACY
public static final BsonBinarySubType UUID_STANDARD
public static final BsonBinarySubType MD5
public static final BsonBinarySubType USER_DEFINED
public static BsonBinarySubType[] values()
for (BsonBinarySubType c : BsonBinarySubType.values()) System.out.println(c);
public static BsonBinarySubType 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 static boolean isUuid(byte value)
value - the subtype value as a bytepublic byte getValue()