Record Class TomlDocument
java.lang.Object
java.lang.Record
be.imgn.toml.TomlDocument
- Record Components:
root- the root tablepositions- where the keys and values ofroot, and of the tables and arrays in it, are written
A parsed document: its root table, and where its keys and values are written.
Two documents are equal when they have the same root table and the same positions. Positions are equal only to themselves, so two parses of a text are not equal documents, but their root tables are equal.
- 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.Returns the value of thepositionsrecord component.root()Returns the value of therootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TomlDocument
Creates a document.- Throws:
NullPointerException- ifrootorpositionsis 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). -
root
-
positions
-