Package 

Object PatchOp.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class kotlin.Any

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.
      • 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 null a set operation is created to set/replace the current value. Alternatively, when the provided value is null a delete operation is created to delete the current value.

        Parameters:
        value - Value to set/replace the current value or delete the current value.