Record Class PatchError.UnknownOperation
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.patch.PatchError.UnknownOperation
- Record Components:
operation- the index of the operationop- the value ofop
- All Implemented Interfaces:
PatchError
- Enclosing interface:
PatchError
public static record PatchError.UnknownOperation(int operation, String op)
extends Record
implements PatchError
The
op of an operation is not one of the six operations (Section 4).-
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
ConstructorsConstructorDescriptionUnknownOperation(int operation, String op) Creates an instance of aUnknownOperationrecord 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.op()Returns the value of theoprecord component.intReturns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PatchError
message
-
Constructor Details
-
UnknownOperation
-
-
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
-
op
-