Record Class Operation.Add<P>
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.patch.Operation.Add<P>
- Type Parameters:
P- the node type of the model of the patch document- Record Components:
path- the target locationvalue- the value to add
- All Implemented Interfaces:
Operation<P>
public static record Operation.Add<P>(JsonPointer path, P value)
extends Record
implements Operation<P>
add (Section 4.1): adds a member, inserts an array element, or replaces the whole
document.-
Nested Class Summary
Nested classes/interfaces inherited from interface Operation
Operation.Add<P>, Operation.Copy<P>, Operation.Move<P>, Operation.Remove<P>, Operation.Replace<P>, Operation.Test<P> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
path
-
value
-