Record Class PointerError.NotAContainer
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.pointer.PointerError.NotAContainer
- Record Components:
parent- the pointer to the value
- All Implemented Interfaces:
PointerError
- Enclosing interface:
PointerError
public static record PointerError.NotAContainer(JsonPointer parent)
extends Record
implements PointerError
A token follows a value that is not an object or an 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
ConstructorsConstructorDescriptionNotAContainer(JsonPointer parent) Creates an instance of aNotAContainerrecord 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.final StringtoString()Returns a string representation of this record class.Methods inherited from interface PointerError
message
-
Constructor Details
-
NotAContainer
Creates an instance of aNotAContainerrecord class.- Parameters:
parent- the value for theparentrecord 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 withObjects::equals(Object,Object). -
parent
-