Enum Class CollectionDefaultIdTypes
java.lang.Object
java.lang.Enum<CollectionDefaultIdTypes>
com.datastax.astra.client.collections.definition.CollectionDefaultIdTypes
- All Implemented Interfaces:
Serializable
,Comparable<CollectionDefaultIdTypes>
,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
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CollectionDefaultIdTypes
Creates a CollectionIdTypes from its string value.static CollectionDefaultIdTypes
Returns the enum constant of this class with the specified name.static CollectionDefaultIdTypes[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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 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.
-