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>
  • Enum Constant Details

    • PUSH_FIRST

      public static final SubArrayRequest.ArrayOperation PUSH_FIRST
      Prepend an existing array with a value.
    • PUSH_LAST

      public static final SubArrayRequest.ArrayOperation PUSH_LAST
      Append a value to an existing array.
    • INSERT

      public static final SubArrayRequest.ArrayOperation INSERT
      Insert a value at a specific index into an existing array, shifting values at and after the given index.
    • ADD_UNIQUE

      public static final SubArrayRequest.ArrayOperation 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

      public static SubArrayRequest.ArrayOperation[] 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 SubArrayRequest.ArrayOperation 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
    • opCode

      public byte opCode()