Class JsonPatch

All Implemented Interfaces:
Serializable, Cloneable, Iterable<JsonPatchOperation>, Collection<JsonPatchOperation>, Deque<JsonPatchOperation>, List<JsonPatchOperation>, Queue<JsonPatchOperation>

Represents a JSON Patch document per RFC 6902.

A JSON Patch document is a JSON array of operation objects; this type therefore extends LinkedList of JsonPatchOperation. Mirrors the top-level-array pattern used by JsonSchemaArray - no @Json(wrapperAttr=...) wrapping.

  • Constructor Details

    • JsonPatch

      public JsonPatch()
      Default constructor.
    • JsonPatch

      public JsonPatch(JsonPatchOperation... value)
      Constructor with predefined operations to add to this patch.
      Parameters:
      value - The operations in this patch.
  • Method Details