Record Class PointerError.InvalidEscape
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.pointer.PointerError.InvalidEscape
- Record Components:
position- the position of the~, in Unicode code points from the start
- All Implemented Interfaces:
PointerError
- Enclosing interface:
PointerError
public static record PointerError.InvalidEscape(int position)
extends Record
implements PointerError
A
~ is not followed by 0 or 1 (RFC 6901, Section 3).-
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
ConstructorsConstructorDescriptionInvalidEscape(int position) Creates an instance of aInvalidEscaperecord 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.intposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PointerError
message
-
Constructor Details
-
InvalidEscape
public InvalidEscape(int position) Creates an instance of aInvalidEscaperecord class.- Parameters:
position- the value for thepositionrecord 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. -
position
-