Record Class TomlBindings.Context
java.lang.Object
java.lang.Record
be.imgn.toml.TomlBindings.Context
- Record Components:
path- the path of the value, asTomlMappingException.path()describes itunknownKeys- what binding does with a key that no component takes
- Enclosing class:
TomlBindings
Where a value is in the document, and how to bind it.
- Since:
- 0.1.0
-
Constructor Summary
Constructors -
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.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunknownKeysrecord component.
-
Constructor Details
-
Context
Creates a context.- Parameters:
path- the path of the valueunknownKeys- what binding does with a key that no component takes- Throws:
NullPointerException- ifpathorunknownKeysis null
-
-
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). -
path
-
unknownKeys
Returns the value of theunknownKeysrecord component.- Returns:
- the value of the
unknownKeysrecord component
-