Record Class PointerError.IndexOutOfRange
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.pointer.PointerError.IndexOutOfRange
- Record Components:
parent- the pointer to the arraytoken- the index
- All Implemented Interfaces:
PointerError
- Enclosing interface:
PointerError
public static record PointerError.IndexOutOfRange(JsonPointer parent, String token)
extends Record
implements PointerError
An array index is not less than the length of the array.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PointerError
PointerError.DuplicateName, PointerError.IndexOutOfRange, PointerError.InvalidEscape, PointerError.InvalidFragment, PointerError.InvalidIndex, PointerError.MemberNotFound, PointerError.MissingSlash, PointerError.NotAContainer -
Constructor Summary
ConstructorsConstructorDescriptionIndexOutOfRange(JsonPointer parent, String token) Creates an instance of aIndexOutOfRangerecord 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.parent()Returns the value of theparentrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PointerError
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. All components in this record class are compared withObjects::equals(Object,Object). -
parent
-
token
-