Record Class PatchError.ValueNotRepresentable
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.patch.PatchError.ValueNotRepresentable
- Record Components:
operation- the index of the operation
- All Implemented Interfaces:
PatchError
- Enclosing interface:
PatchError
public static record PatchError.ValueNotRepresentable(int operation)
extends Record
implements PatchError
The value of an operation cannot be added to the target document: the target model cannot
hold one of its numbers, for example
1e99999999999 in a Jackson tree, or an object of the
value has duplicate member names, which have no defined value (RFC 8259, 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
ConstructorsConstructorDescriptionValueNotRepresentable(int operation) Creates an instance of aValueNotRepresentablerecord 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.intReturns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PatchError
message
-
Constructor Details
-
ValueNotRepresentable
public ValueNotRepresentable(int operation) Creates an instance of aValueNotRepresentablerecord class.- Parameters:
operation- the value for theoperationrecord 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 with thecomparemethod from their corresponding wrapper classes. -
operation
-