Package org.tomlj

Class MutableTomlArray

    • Field Detail

      • isTableArray

        private final boolean isTableArray
    • Constructor Detail

      • MutableTomlArray

        MutableTomlArray​(boolean isTableArray)
    • Method Detail

      • isTableArray

        boolean isTableArray()
      • containsStrings

        public boolean containsStrings()
        Description copied from interface: TomlArray
        true if the array contains strings.
        Specified by:
        containsStrings in interface TomlArray
        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 interface TomlArray
        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 interface TomlArray
        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 interface TomlArray
        Returns:
        true if the array contains booleans.
      • containsOffsetDateTimes

        public boolean containsOffsetDateTimes()
        Description copied from interface: TomlArray
        true if the array contains OffsetDateTimes.
        Specified by:
        containsOffsetDateTimes in interface TomlArray
        Returns:
        true if the array contains OffsetDateTimes.
      • containsLocalDateTimes

        public boolean containsLocalDateTimes()
        Description copied from interface: TomlArray
        true if the array contains LocalDateTimes.
        Specified by:
        containsLocalDateTimes in interface TomlArray
        Returns:
        true if the array contains LocalDateTimes.
      • containsLocalDates

        public boolean containsLocalDates()
        Description copied from interface: TomlArray
        true if the array contains LocalDates.
        Specified by:
        containsLocalDates in interface TomlArray
        Returns:
        true if the array contains LocalDates.
      • containsLocalTimes

        public boolean containsLocalTimes()
        Description copied from interface: TomlArray
        true if the array contains LocalTimes.
        Specified by:
        containsLocalTimes in interface TomlArray
        Returns:
        true if the array contains LocalTimes.
      • containsArrays

        public boolean containsArrays()
        Description copied from interface: TomlArray
        true if the array contains arrays.
        Specified by:
        containsArrays in interface TomlArray
        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 interface TomlArray
        Returns:
        true if the array contains tables.
      • size

        public int size()
        Description copied from interface: TomlArray
        The size of the array.
        Specified by:
        size in interface TomlArray
        Returns:
        The size of the array.
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: TomlArray
        true if the array is empty.
        Specified by:
        isEmpty in interface TomlArray
        Returns:
        true if the array is empty.
      • get

        public java.lang.Object get​(int index)
        Description copied from interface: TomlArray
        Get a value at a specified index.
        Specified by:
        get in interface TomlArray
        Parameters:
        index - The array index.
        Returns:
        The value.
      • 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 interface TomlArray
        Parameters:
        index - The array index.
        Returns:
        The input position.
      • toList

        public java.util.List<java.lang.Object> toList()
        Description copied from interface: TomlArray
        Get the elements of this array as a List.

        Note that this does not do a deep conversion. If this array contains tables or arrays, they will be of type TomlTable or TomlArray respectively.

        Specified by:
        toList in interface TomlArray
        Returns:
        The elements of this array as a List.