Package org.tomlj
Class EmptyTomlArray
java.lang.Object
org.tomlj.EmptyTomlArray
- All Implemented Interfaces:
TomlArray
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
true
if the array contains arrays.boolean
true
if the array contains booleans.boolean
true
if the array contains doubles.boolean
true
if the array containsLocalDate
s.boolean
true
if the array containsLocalDateTime
s.boolean
true
if the array containsLocalTime
s.boolean
true
if the array contains longs.boolean
true
if the array containsOffsetDateTime
s.boolean
true
if the array contains strings.boolean
true
if the array contains tables.get
(int index) Get a value at a specified index.inputPositionOf
(int index) Get the position where a value is defined in the TOML document.boolean
isEmpty()
true
if the array is empty.int
size()
The size of the array.toList()
Get the elements of this array as aList
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.tomlj.TomlArray
getArray, getBoolean, getDouble, getLocalDate, getLocalDateTime, getLocalTime, getLong, getOffsetDateTime, getString, getTable, toJson, toJson, toJson, toJson, toToml, toToml
-
Field Details
-
EMPTY_ARRAY
-
-
Constructor Details
-
EmptyTomlArray
private EmptyTomlArray()
-
-
Method Details
-
size
public int size()Description copied from interface:TomlArray
The size of the array. -
isEmpty
public boolean isEmpty()Description copied from interface:TomlArray
true
if the array is empty. -
containsStrings
public boolean containsStrings()Description copied from interface:TomlArray
true
if the array contains strings.- Specified by:
containsStrings
in interfaceTomlArray
- Returns:
true
if the array contains strings.
-
containsLongs
public boolean containsLongs()Description copied from interface:TomlArray
true
if the array contains longs.- Specified by:
containsLongs
in interfaceTomlArray
- Returns:
true
if the array contains longs.
-
containsDoubles
public boolean containsDoubles()Description copied from interface:TomlArray
true
if the array contains doubles.- Specified by:
containsDoubles
in interfaceTomlArray
- Returns:
true
if the array contains doubles.
-
containsBooleans
public boolean containsBooleans()Description copied from interface:TomlArray
true
if the array contains booleans.- Specified by:
containsBooleans
in interfaceTomlArray
- Returns:
true
if the array contains booleans.
-
containsOffsetDateTimes
public boolean containsOffsetDateTimes()Description copied from interface:TomlArray
true
if the array containsOffsetDateTime
s.- Specified by:
containsOffsetDateTimes
in interfaceTomlArray
- Returns:
true
if the array containsOffsetDateTime
s.
-
containsLocalDateTimes
public boolean containsLocalDateTimes()Description copied from interface:TomlArray
true
if the array containsLocalDateTime
s.- Specified by:
containsLocalDateTimes
in interfaceTomlArray
- Returns:
true
if the array containsLocalDateTime
s.
-
containsLocalDates
public boolean containsLocalDates()Description copied from interface:TomlArray
true
if the array containsLocalDate
s.- Specified by:
containsLocalDates
in interfaceTomlArray
- Returns:
true
if the array containsLocalDate
s.
-
containsLocalTimes
public boolean containsLocalTimes()Description copied from interface:TomlArray
true
if the array containsLocalTime
s.- Specified by:
containsLocalTimes
in interfaceTomlArray
- Returns:
true
if the array containsLocalTime
s.
-
containsArrays
public boolean containsArrays()Description copied from interface:TomlArray
true
if the array contains arrays.- Specified by:
containsArrays
in interfaceTomlArray
- Returns:
true
if the array contains arrays.
-
containsTables
public boolean containsTables()Description copied from interface:TomlArray
true
if the array contains tables.- Specified by:
containsTables
in interfaceTomlArray
- Returns:
true
if the array contains tables.
-
get
Description copied from interface:TomlArray
Get a value at a specified index. -
inputPositionOf
Description copied from interface:TomlArray
Get the position where a value is defined in the TOML document.- Specified by:
inputPositionOf
in interfaceTomlArray
- Parameters:
index
- The array index.- Returns:
- The input position.
-
toList
Description copied from interface:TomlArray
-