public static enum SubArrayRequest.ArrayOperation extends Enum<SubArrayRequest.ArrayOperation>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final SubArrayRequest.ArrayOperation PUSH_FIRST
public static final SubArrayRequest.ArrayOperation PUSH_LAST
public static final SubArrayRequest.ArrayOperation INSERT
public static final SubArrayRequest.ArrayOperation ADD_UNIQUE
public static SubArrayRequest.ArrayOperation[] values()
for (SubArrayRequest.ArrayOperation c : SubArrayRequest.ArrayOperation.values()) System.out.println(c);
public static SubArrayRequest.ArrayOperation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte opCode()
Copyright © 2016 Couchbase, Inc.. All rights reserved.