Record Class PointerError.InvalidFragment
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.pointer.PointerError.InvalidFragment
- Record Components:
position- the position of the problem, in characters from the start
- All Implemented Interfaces:
PointerError
- Enclosing interface:
PointerError
public static record PointerError.InvalidFragment(int position)
extends Record
implements PointerError
A URI fragment identifier is not a valid JSON Pointer (RFC 6901, Section 6): it does not
start with
#, it has a character that a fragment does not permit, a percent-encoding is
not complete, or the bytes are not UTF-8.-
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
ConstructorsConstructorDescriptionInvalidFragment(int position) Creates an instance of aInvalidFragmentrecord 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
-
InvalidFragment
public InvalidFragment(int position) Creates an instance of aInvalidFragmentrecord 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
-