Package org.tomlj
Class EmptyTomlArray
- java.lang.Object
-
- org.tomlj.EmptyTomlArray
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static TomlArray
EMPTY_ARRAY
-
Constructor Summary
Constructors Modifier Constructor Description private
EmptyTomlArray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsArrays()
true
if the array contains arrays.boolean
containsBooleans()
true
if the array contains booleans.boolean
containsDoubles()
true
if the array contains doubles.boolean
containsLocalDates()
true
if the array containsLocalDate
s.boolean
containsLocalDateTimes()
true
if the array containsLocalDateTime
s.boolean
containsLocalTimes()
true
if the array containsLocalTime
s.boolean
containsLongs()
true
if the array contains longs.boolean
containsOffsetDateTimes()
true
if the array containsOffsetDateTime
s.boolean
containsStrings()
true
if the array contains strings.boolean
containsTables()
true
if the array contains tables.java.lang.Object
get(int index)
Get a value at a specified index.TomlPosition
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.java.util.List<java.lang.Object>
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 Detail
-
EMPTY_ARRAY
static final TomlArray EMPTY_ARRAY
-
-
Method Detail
-
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
public java.lang.Object get(int index)
Description copied from interface:TomlArray
Get a value at a specified index.
-
inputPositionOf
public TomlPosition inputPositionOf(int index)
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
public java.util.List<java.lang.Object> toList()
Description copied from interface:TomlArray
-
-