Record Class PatchError.FromNotFound
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.patch.PatchError.FromNotFound
- Record Components:
operation- the index of the operationerror- the reason, as a pointer error
- All Implemented Interfaces:
PatchError
- Enclosing interface:
PatchError
public static record PatchError.FromNotFound(int operation, PointerError error)
extends Record
implements PatchError
The
from location of a move or a copy does not exist (Sections 4.4 and 4.5).-
Nested Class Summary
Nested classes/interfaces inherited from interface PatchError
PatchError.DuplicateMember, PatchError.FromNotFound, PatchError.InvalidPointer, PatchError.MissingMember, PatchError.MoveIntoChild, PatchError.NotAnArray, PatchError.NotAnObject, PatchError.NotAString, PatchError.PathNotFound, PatchError.RootRemoved, PatchError.TestFailed, PatchError.UnknownOperation, PatchError.ValueNotRepresentable -
Constructor Summary
ConstructorsConstructorDescriptionFromNotFound(int operation, PointerError error) Creates an instance of aFromNotFoundrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PatchError
message
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
operation
-
error
-