Interface ObjectPatch


public interface ObjectPatch
Format-agnostic interface for applying patches to objects. Implementations handle specific patch formats like JSON Patch (RFC 6902) and JSON Merge Patch (RFC 7396).
Author:
James R. Perkins
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    apply(T target)
    Apply this patch to the given target object.
  • Method Details

    • apply

      <T> T apply(T target)
      Apply this patch to the given target object.
      Type Parameters:
      T - the type of the target object
      Parameters:
      target - the object to patch
      Returns:
      the patched object