Enum SubArrayRequest.ArrayOperation
java.lang.Object
java.lang.Enum<SubArrayRequest.ArrayOperation>
com.couchbase.client.core.message.kv.subdoc.simple.SubArrayRequest.ArrayOperation
- All Implemented Interfaces:
Serializable
,Comparable<SubArrayRequest.ArrayOperation>
,java.lang.constant.Constable
- Enclosing class:
- SubArrayRequest
public static enum SubArrayRequest.ArrayOperation extends Enum<SubArrayRequest.ArrayOperation>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_UNIQUE
Add a value in an existing array unless the value already is present in the array.INSERT
Insert a value at a specific index into an existing array, shifting values at and after the given index.PUSH_FIRST
Prepend an existing array with a value.PUSH_LAST
Append a value to an existing array. -
Method Summary
Modifier and Type Method Description byte
opCode()
static SubArrayRequest.ArrayOperation
valueOf(String name)
Returns the enum constant of this type with the specified name.static SubArrayRequest.ArrayOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PUSH_FIRST
Prepend an existing array with a value. -
PUSH_LAST
Append a value to an existing array. -
INSERT
Insert a value at a specific index into an existing array, shifting values at and after the given index. -
ADD_UNIQUE
Add a value in an existing array unless the value already is present in the array. Existence of the value is tested via String comparison, and the array can only be containing primitive values.
-
-
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
-
opCode
public byte opCode()
-