Package org.tomlj
Class MutableHomogeneousTomlArray
- java.lang.Object
-
- org.tomlj.MutableTomlArray
-
- org.tomlj.MutableHomogeneousTomlArray
-
- All Implemented Interfaces:
TomlArray
final class MutableHomogeneousTomlArray extends MutableTomlArray
-
-
Constructor Summary
Constructors Constructor Description MutableHomogeneousTomlArray(boolean tableArray)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableHomogeneousTomlArray
append(java.lang.Object value, TomlPosition position)
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.-
Methods inherited from class org.tomlj.MutableTomlArray
create, create, get, inputPositionOf, isEmpty, isTableArray, size, toList
-
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
-
type
private TomlType type
-
-
Method Detail
-
containsStrings
public boolean containsStrings()
Description copied from interface:TomlArray
true
if the array contains strings.- Specified by:
containsStrings
in interfaceTomlArray
- Overrides:
containsStrings
in classMutableTomlArray
- 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
- Overrides:
containsLongs
in classMutableTomlArray
- 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
- Overrides:
containsDoubles
in classMutableTomlArray
- 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
- Overrides:
containsBooleans
in classMutableTomlArray
- 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
- Overrides:
containsOffsetDateTimes
in classMutableTomlArray
- 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
- Overrides:
containsLocalDateTimes
in classMutableTomlArray
- 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
- Overrides:
containsLocalDates
in classMutableTomlArray
- 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
- Overrides:
containsLocalTimes
in classMutableTomlArray
- 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
- Overrides:
containsArrays
in classMutableTomlArray
- 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
- Overrides:
containsTables
in classMutableTomlArray
- Returns:
true
if the array contains tables.
-
append
public MutableHomogeneousTomlArray append(java.lang.Object value, TomlPosition position)
- Overrides:
append
in classMutableTomlArray
-
-