Package org.apache.juneau.bean.jsonpatch
Class JsonPatch
java.lang.Object
- 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.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.JsonPatch(JsonPatchOperation... value) Constructor with predefined operations to add to this patch. -
Method Summary
Modifier and TypeMethodDescriptionappend(JsonPatchOperation... value) Convenience method for appending one or moreJsonPatchOperationobjects to this patch.Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSequentialList
iteratorMethods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Constructor Details
-
JsonPatch
public JsonPatch()Default constructor. -
JsonPatch
Constructor with predefined operations to add to this patch.- Parameters:
value- The operations in this patch.
-
-
Method Details
-
append
Convenience method for appending one or moreJsonPatchOperationobjects to this patch.- Parameters:
value- The operations to append.- Returns:
- This object.
-