Record Class Operation.Remove<P>
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.patch.Operation.Remove<P>
- Type Parameters:
P- the node type of the model of the patch document- Record Components:
path- the target location
- All Implemented Interfaces:
Operation<P>
remove (Section 4.2): removes 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
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.
-
Constructor Details
-
Remove
Creates an instance of aRemoverecord class.- Parameters:
path- the value for thepathrecord component
-
-
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
-