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>, java.lang.constant.Constable
Enclosing class:
MemcacheProtocol

public static enum MemcacheProtocol.Datatype extends Enum<MemcacheProtocol.Datatype>
  • Enum Constant Details

  • Method Details

    • values

      public static MemcacheProtocol.Datatype[] 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

      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 name
      NullPointerException - if the argument is null
    • datatype

      public byte datatype()
      Returns the datatype byte for the given enum.
      Returns:
      the datatype.
    • decode

      public static Set<MemcacheProtocol.Datatype> decode(int bitfield)
    • encode

      public static int encode(Set<MemcacheProtocol.Datatype> type)
    • isSnappy

      public static boolean isSnappy(int bitfield)
    • contains

      public static boolean contains(int bitfield, MemcacheProtocol.Datatype type)