Package org.tomlj
Class EmptyTomlTable
java.lang.Object
org.tomlj.EmptyTomlTable
- All Implemented Interfaces:
TomlTable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentryPathSet
(boolean includeTables) Get all the entries in this table.entrySet()
Get the entries of this table.@Nullable Object
Get a value from the TOML document.@Nullable TomlPosition
inputPositionOf
(List<String> path) Get the position where a key is defined in the TOML document.boolean
isEmpty()
true
if there are no entries in this table.keyPathSet
(boolean includeTables) Get all the paths in this table.keySet()
Get the keys of this table.int
size()
Return the number of entries in tis table.toMap()
Get the elements of this array as aMap
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.tomlj.TomlTable
contains, contains, dottedEntrySet, dottedEntrySet, dottedKeySet, dottedKeySet, entryPathSet, get, getArray, getArray, getArrayOrEmpty, getArrayOrEmpty, getBoolean, getBoolean, getBoolean, getBoolean, getDouble, getDouble, getDouble, getDouble, getLocalDate, getLocalDate, getLocalDate, getLocalDate, getLocalDateTime, getLocalDateTime, getLocalDateTime, getLocalDateTime, getLocalTime, getLocalTime, getLocalTime, getLocalTime, getLong, getLong, getLong, getLong, getOffsetDateTime, getOffsetDateTime, getOffsetDateTime, getOffsetDateTime, getString, getString, getString, getString, getTable, getTable, getTableOrEmpty, getTableOrEmpty, inputPositionOf, isArray, isArray, isBoolean, isBoolean, isDouble, isDouble, isLocalDate, isLocalDate, isLocalDateTime, isLocalDateTime, isLocalTime, isLocalTime, isLong, isLong, isOffsetDateTime, isOffsetDateTime, isString, isString, isTable, isTable, keyPathSet, toJson, toJson, toJson, toJson, toToml, toToml
-
Field Details
-
EMPTY_TABLE
-
-
Constructor Details
-
EmptyTomlTable
private EmptyTomlTable()
-
-
Method Details
-
size
public int size()Description copied from interface:TomlTable
Return the number of entries in tis table. -
isEmpty
public boolean isEmpty()Description copied from interface:TomlTable
true
if there are no entries in this table. -
keySet
Description copied from interface:TomlTable
Get the keys of this table.The returned set contains only immediate keys to this table, and not dotted keys or key paths. For a complete view of keys available in the TOML document, use
TomlTable.dottedKeySet()
orTomlTable.keyPathSet()
. -
keyPathSet
Description copied from interface:TomlTable
Get all the paths in this table.- Specified by:
keyPathSet
in interfaceTomlTable
- Parameters:
includeTables
- Iftrue
, also include paths to intermediary and empty tables.- Returns:
- A set containing all the key paths of this table.
-
entrySet
Description copied from interface:TomlTable
Get the entries of this table.The returned set contains only immediate entries of this table, and not entries with dotted keys or key paths. For a complete view of all entries available in the TOML document, use
TomlTable.dottedEntrySet()
orTomlTable.entryPathSet()
. -
entryPathSet
Description copied from interface:TomlTable
Get all the entries in this table.- Specified by:
entryPathSet
in interfaceTomlTable
- Parameters:
includeTables
- Iftrue
, also include entries in intermediary and empty tables.- Returns:
- A set containing all the entries of this table.
-
get
Description copied from interface:TomlTable
Get a value from the TOML document. -
inputPositionOf
Description copied from interface:TomlTable
Get the position where a key is defined in the TOML document.- Specified by:
inputPositionOf
in interfaceTomlTable
- Parameters:
path
- The key path.- Returns:
- The input position, or
null
if the key was not set in the TOML document.
-
toMap
Description copied from interface:TomlTable
-