Enum MemcacheProtocol.Datatype
- java.lang.Object
-
- java.lang.Enum<MemcacheProtocol.Datatype>
-
- com.couchbase.client.core.io.netty.kv.MemcacheProtocol.Datatype
-
- All Implemented Interfaces:
Serializable
,Comparable<MemcacheProtocol.Datatype>
- Enclosing class:
- MemcacheProtocol
public static enum MemcacheProtocol.Datatype extends Enum<MemcacheProtocol.Datatype>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
datatype()
Returns the datatype byte for the given enum.static MemcacheProtocol.Datatype
of(byte input)
static MemcacheProtocol.Datatype
valueOf(String name)
Returns the enum constant of this type with the specified name.static MemcacheProtocol.Datatype[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JSON
public static final MemcacheProtocol.Datatype JSON
The JSON datatype.
-
SNAPPY
public static final MemcacheProtocol.Datatype SNAPPY
Snappy datatype used to signal compression.
-
XATTR
public static final MemcacheProtocol.Datatype XATTR
Extended attributes (XATTR)
-
-
Method Detail
-
values
public static MemcacheProtocol.Datatype[] 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 (MemcacheProtocol.Datatype c : MemcacheProtocol.Datatype.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MemcacheProtocol.Datatype 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
-
datatype
public byte datatype()
Returns the datatype byte for the given enum.- Returns:
- the datatype.
-
of
public static MemcacheProtocol.Datatype of(byte input)
-
-