Package com.couchbase.client.core.msg.kv
Enum SubdocCommandType
- java.lang.Object
-
- java.lang.Enum<SubdocCommandType>
-
- com.couchbase.client.core.msg.kv.SubdocCommandType
-
- All Implemented Interfaces:
Serializable
,Comparable<SubdocCommandType>
public enum SubdocCommandType extends Enum<SubdocCommandType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_ADD_UNIQUE
ARRAY_INSERT
ARRAY_PUSH_FIRST
ARRAY_PUSH_LAST
COUNT
COUNTER
DELETE
DELETE_DOC
DICT_ADD
DICT_UPSERT
EXISTS
GET
GET_DOC
REPLACE
REPLACE_BODY_WITH_XATTR
SET_DOC
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubdocCommandType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SubdocCommandType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SET_DOC
public static final SubdocCommandType SET_DOC
-
COUNTER
public static final SubdocCommandType COUNTER
-
REPLACE
public static final SubdocCommandType REPLACE
-
DICT_ADD
public static final SubdocCommandType DICT_ADD
-
DICT_UPSERT
public static final SubdocCommandType DICT_UPSERT
-
ARRAY_PUSH_FIRST
public static final SubdocCommandType ARRAY_PUSH_FIRST
-
ARRAY_PUSH_LAST
public static final SubdocCommandType ARRAY_PUSH_LAST
-
ARRAY_ADD_UNIQUE
public static final SubdocCommandType ARRAY_ADD_UNIQUE
-
ARRAY_INSERT
public static final SubdocCommandType ARRAY_INSERT
-
DELETE
public static final SubdocCommandType DELETE
-
DELETE_DOC
public static final SubdocCommandType DELETE_DOC
-
REPLACE_BODY_WITH_XATTR
public static final SubdocCommandType REPLACE_BODY_WITH_XATTR
-
GET
public static final SubdocCommandType GET
-
EXISTS
public static final SubdocCommandType EXISTS
-
COUNT
public static final SubdocCommandType COUNT
-
GET_DOC
public static final SubdocCommandType GET_DOC
-
-
Method Detail
-
values
public static SubdocCommandType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SubdocCommandType c : SubdocCommandType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubdocCommandType valueOf(String name)
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
-
-