-
- All Implemented Interfaces:
public class PatchOp.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static PatchOp.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final <T extends Any> PatchOp.Set<T>set(T value)Creates a JSON Merge Patch set operation from the provided value that sets/replaces the current value. final <T extends Any> PatchOp.Delete<T>delete()Creates a JSON Merge Patch delete operation that deletes the current value. final <T extends Any> PatchOp.None<T>none()Creates a JSON Merge Patch none operation that leaves the current value untouched. final <T extends Any> PatchOp<T>setOrDelete(T value)Creates a JSON Merge Patch set or delete operation from the provided value. -
-
Method Detail
-
set
final <T extends Any> PatchOp.Set<T> set(T value)
Creates a JSON Merge Patch set operation from the provided value that sets/replaces the current value.
- Parameters:
value- Value to set/replace the current value with.
-
delete
final <T extends Any> PatchOp.Delete<T> delete()
Creates a JSON Merge Patch delete operation that deletes the current value.
-
none
final <T extends Any> PatchOp.None<T> none()
Creates a JSON Merge Patch none operation that leaves the current value untouched.
-
setOrDelete
final <T extends Any> PatchOp<T> setOrDelete(T value)
Creates a JSON Merge Patch set or delete operation from the provided value. If the value provided is not
nulla set operation is created to set/replace the current value. Alternatively, when the provided value isnulla delete operation is created to delete the current value.- Parameters:
value- Value to set/replace the current value or delete the current value.
-
-
-
-