Record Class Operation.Replace<P>
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.patch.Operation.Replace<P>
- Type Parameters:
P- the node type of the model of the patch document- Record Components:
path- the target locationvalue- the new value
- All Implemented Interfaces:
Operation<P>
public static record Operation.Replace<P>(JsonPointer path, P value)
extends Record
implements Operation<P>
replace (Section 4.3): replaces the value at the target location.-
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
ConstructorsConstructorDescriptionReplace(JsonPointer path, P value) Creates an instance of aReplacerecord class. -
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
-