static PatchOperation |
PatchOperation.add(String field,
Object value) |
Creates a new "add" patch operation which will add the provided value(s)
to the specified field.
|
static PatchOperation |
PatchOperation.add(JsonPointer field,
Object value) |
Creates a new "add" patch operation which will add the provided value(s)
to the specified field.
|
static PatchOperation |
PatchOperation.copy(String from,
String field) |
Creates a new "copy" patch operation which will copy the value found at `from` to `path`.
|
static PatchOperation |
PatchOperation.copy(JsonPointer from,
JsonPointer field) |
Creates a new "copy" patch operation which will copy the value found at `from` to `path`.
|
static PatchOperation |
PatchOperation.copyOf(PatchOperation operation) |
Returns a deep copy of the provided patch operation.
|
static PatchOperation |
PatchOperation.increment(String field,
Number amount) |
Creates a new "increment" patch operation which will increment the
value(s) of the specified field by the amount provided.
|
static PatchOperation |
PatchOperation.increment(JsonPointer field,
Number amount) |
Creates a new "increment" patch operation which will increment the
value(s) of the specified field by the amount provided.
|
static PatchOperation |
PatchOperation.move(String from,
String field) |
Creates a new "move" patch operation which will move the value found at `from` to `path`.
|
static PatchOperation |
PatchOperation.move(JsonPointer from,
JsonPointer field) |
Creates a new "move" patch operation which will move the value found at `from` to `path`.
|
static PatchOperation |
PatchOperation.operation(String operation,
String field,
Object value) |
Creates a new patch operation having the specified operation type, field,
and value(s).
|
static PatchOperation |
PatchOperation.operation(String operation,
JsonPointer field,
Object value) |
Creates a new patch operation having the specified operation type, field,
and value(s).
|
static PatchOperation |
PatchOperation.remove(String field) |
Creates a new "remove" patch operation which will remove the specified
field.
|
static PatchOperation |
PatchOperation.remove(String field,
Object value) |
Creates a new "remove" patch operation which will remove the provided
value(s) from the specified field.
|
static PatchOperation |
PatchOperation.remove(JsonPointer field) |
Creates a new "remove" patch operation which will remove the specified
field.
|
static PatchOperation |
PatchOperation.remove(JsonPointer field,
Object value) |
Creates a new "remove" patch operation which will remove the provided
value(s) from the specified field.
|
static PatchOperation |
PatchOperation.replace(String field,
Object value) |
Creates a new "replace" patch operation which will replace the value(s)
of the specified field with the provided value(s).
|
static PatchOperation |
PatchOperation.replace(JsonPointer field,
Object value) |
Creates a new "replace" patch operation which will replace the value(s)
of the specified field with the provided value(s).
|
static PatchOperation |
PatchOperation.transform(String field,
Object transform) |
Creates a new "transform" patch operation which sets the value at field based on a
transformation.
|
static PatchOperation |
PatchOperation.transform(JsonPointer field,
Object transform) |
Creates a new "transform" patch operation which sets the value at field based on a
transformation.
|
static PatchOperation |
PatchOperation.valueOf(JsonValue json) |
Parses the provided JSON content as a patch operation.
|