Record Class Operation.Move<P>
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.patch.Operation.Move<P>
- Type Parameters:
P- the node type of the model of the patch document- Record Components:
from- the location of the value to movepath- the target location
- All Implemented Interfaces:
Operation<P>
public static record Operation.Move<P>(JsonPointer from, JsonPointer path)
extends Record
implements Operation<P>
move (Section 4.4): removes the value at from and adds it 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
ConstructorsConstructorDescriptionMove(JsonPointer from, JsonPointer path) Creates an instance of aMoverecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.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.
-
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). -
from
-
path
-