Constructors
TomlTableSource Codeshared TomlTable({<String->TomlValue>*} entries = [])

Create a new TomlTable containing the given entries.

Parameters:
  • entries = []
Attributes
hashSource Codeshared actual Integer hash

The hash value of the value, which allows the value to be an element of a hash-based set or key of a hash-based map. Implementations must respect the constraint that:

  • if x==y then x.hash==y.hash.

Therefore, a class which refines equals must also refine hash.

In general, hash values vary between platforms and between executions of the same program.

Note that when executing on a Java Virtual Machine, the 64-bit Integer value returned by an implementation of hash is truncated to a 32-bit integer value by taking the exclusive disjunction of the 32 lowest-order bits with the 32 highest-order bits, before returning the value to the caller.

Refines Identifiable.hash ultimately refines Object.hash
Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Collection<Element>
Attributes inherited from: Correspondence<Key,Item>
Attributes inherited from: Iterable<Element,Absent>
Attributes inherited from: Map<Key,Item>
Methods
clearSource Codeshared actual void clear()

Remove every entry from this map, leaving an empty map with no entries.

cloneSource Codeshared actual TomlTable clone()

A shallow copy of this collection, that is, a collection with identical elements which does not change if this collection changes. If this collection is immutable, it is acceptable to return a reference to this collection. If this collection is mutable, a newly instantiated collection must be returned.

Refines MutableMap.clone ultimately refines Collection.clone
definesSource Codeshared actual Boolean defines(Object key)

Determines if there is a value defined for the given key.

Refines Map.defines ultimately refines Correspondence.defines
equalsSource Codeshared actual Boolean equals(Object that)

Determine if two values are equal.

For any two non-null objects x and y, x.equals(y) may be written as:

x == y 

Implementations should respect the constraints that:

  • if x===y then x==y (reflexivity),
  • if x==y then y==x (symmetry),
  • if x==y and y==z then x==z (transitivity).

Furthermore it is recommended that implementations ensure that if x==y then x and y have the same concrete class.

A class which explicitly refines equals() is said to support value equality, and the equality operator == is considered much more meaningful for such classes than for a class which simply inherits the default implementation of identity equality from Identifiable.

Note that an implementation of equals() that always returns false does satisfy the constraints given above, as long as the class does not inherit Identifiable. Therefore, in very rare cases where there is no reasonable definition of value equality for a class, for example, function references (Callable), it is acceptable for equals() to be defined to return false for every argument.

Refines Identifiable.equals ultimately refines Object.equals
getSource Codeshared actual TomlValue? get(Object key)

Returns the value defined for the given key, or null if there is no value defined for the given key.

For any instance c of Correspondence, c.get(key) may be written using the item operator:

c[key]
Refines Map.get ultimately refines Correspondence.get
getBooleanSource Codeshared Boolean getBoolean(String key)

Returns a Boolean.

Parameters:
  • key
    • Expecting a Boolean

Throws
getBooleanOrNullSource Codeshared Boolean? getBooleanOrNull(String key)

Returns a Boolean, or null if the key does not exist.

Parameters:
  • key
    • Expecting a Boolean or Null

Throws
getDateSource Codeshared Date getDate(String key)

Returns a Date.

Parameters:
  • key
    • Expecting a Date

Throws
getDateOrNullSource Codeshared Date? getDateOrNull(String key)

Returns a Date, or null if the key does not exist.

Parameters:
  • key
    • Expecting a Date or Null

Throws
getDateTimeSource Codeshared DateTime getDateTime(String key)

Returns a DateTime.

Parameters:
  • key
    • Expecting a DateTime

Throws
getDateTimeOrNullSource Codeshared DateTime? getDateTimeOrNull(String key)

Returns a DateTime, or null if the key does not exist.

Parameters:
  • key
    • Expecting a DateTime or Null

Throws
getFloatSource Codeshared Float getFloat(String key)

Returns a Float.

Parameters:
  • key
    • Expecting a Float

Throws
getFloatOrNullSource Codeshared Float? getFloatOrNull(String key)

Returns a Float, or null if the key does not exist.

Parameters:
  • key
    • Expecting a Float or Null

Throws
getIntegerSource Codeshared Integer getInteger(String key)

Returns a Integer.

Parameters:
  • key
    • Expecting a Integer

Throws
getIntegerOrNullSource Codeshared Integer? getIntegerOrNull(String key)

Returns a Integer, or null if the key does not exist.

Parameters:
  • key
    • Expecting a Integer or Null

Throws
getStringSource Codeshared String getString(String key)

Returns a String.

Parameters:
  • key
    • Expecting a String

Throws
getStringOrNullSource Codeshared String? getStringOrNull(String key)

Returns a String, or null if the key does not exist.

Parameters:
  • key
    • Expecting a Integer or Null

Throws
getTimeSource Codeshared Time getTime(String key)

Returns a Time.

Parameters:
  • key
    • Expecting a Time

Throws
getTimeOrNullSource Codeshared Time? getTimeOrNull(String key)

Returns a Time, or null if the key does not exist.

Parameters:
  • key
    • Expecting a Time or Null

Throws
getTomlArraySource Codeshared TomlArray getTomlArray(String key)

Returns a TomlArray.

Parameters:
  • key
    • Expecting a TomlArray

Throws
getTomlArrayOrNullSource Codeshared TomlArray? getTomlArrayOrNull(String key)

Returns a TomlArray, or null if the key does not exist.

Parameters:
  • key
    • Expecting a TomlTable or Null

Throws
getTomlTableSource Codeshared TomlTable getTomlTable(String key)

Returns a TomlTable.

Parameters:
  • key
    • Expecting a TomlTable

Throws
getTomlTableOrNullSource Codeshared TomlTable? getTomlTableOrNull(String key)

Returns a TomlTable, or null if the key does not exist.

Parameters:
  • key
    • Expecting a TomlTable or Null

Throws
getZoneDateTimeSource Codeshared ZoneDateTime getZoneDateTime(String key)

Returns a ZoneDateTime.

Parameters:
  • key
    • Expecting a ZoneDateTime

Throws
getZoneDateTimeOrNullSource Codeshared ZoneDateTime? getZoneDateTimeOrNull(String key)

Returns a ZoneDateTime, or null if the key does not exist.

Parameters:
  • key
    • Expecting a ZoneDateTime or Null

Throws
iteratorSource Codeshared actual Iterator<String->TomlValue> iterator()

An iterator for the elements belonging to this stream.

If this is a nonempty stream with type {Element+}, the iterator must produce at least one element.

putSource Codeshared actual TomlValue? put(String key, TomlValue item)

Set the item associated with the given key to the given item. If there is already an item associated with this key, replace the association. Otherwise, create a new association.

For any instance c of KeyedCorrespondenceMutator, c.put(key, item) may be written using the item and assignment operators:

c[key] = item
removeSource Codeshared actual TomlValue? remove(String key)

Remove the entry associated with the given key, if any, from this map, returning the value no longer associated with the given key, if any, or null if there was no entry associated with the given key.

Refines MutableMap.remove ultimately refines MapMutator.remove
Inherited Methods
Methods inherited from: Object
Methods inherited from: Category<Element>
Methods inherited from: Collection<Element>
Methods inherited from: Correspondence<Key,Item>
Methods inherited from: Iterable<Element,Absent>
Methods inherited from: KeyedCorrespondenceMutator<Key,Item>
Methods inherited from: Map<Key,Item>
Methods inherited from: MapMutator<Key,Item>
Methods inherited from: MutableMap<Key,Item>