Package com.datastax.astra.client.model
Enum CollectionIdTypes
- All Implemented Interfaces:
Serializable
,Comparable<CollectionIdTypes>
,java.lang.constant.Constable
List of possible types for the collection 'defaultId'.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CollectionIdTypes
Creates a CollectionIdTypes from its string value.static CollectionIdTypes
Returns the enum constant of this type with the specified name.static CollectionIdTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OBJECT_ID
Represent a BSON ObjectId. -
UUIDV6
UUID in version v6 allowing natural ordering. -
UUIDV7
UUID in version v7, random and time-based. -
UUID
UUID v4, the default random UUID.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
fromValue
Creates a CollectionIdTypes from its string value.- Parameters:
value
- The string value to look for.- Returns:
- The corresponding CollectionIdTypes enum constant.
- Throws:
IllegalArgumentException
- if the value does not correspond to any CollectionIdTypes.
-