Class FlatDataList

    • Constructor Detail

      • FlatDataList

        public FlatDataList()
        Default constructor which initializes the internal data with an ArrayList.
      • FlatDataList

        public FlatDataList​(List<Object> internalData)
        Constructor that initializes the internal data with the provided list.
        Parameters:
        internalData -
    • Method Detail

      • remove

        public final Object remove​(int index)
        Removes an element at the specified position in the internal list and returns it.
        Parameters:
        index -
        Returns:
      • get

        public final Object get​(int index)
        Gets an element at the specified position in the internal list.
        Parameters:
        index -
        Returns:
      • getDouble

        public final Double getDouble​(int index)
        Gets an element at the specified position in this list, converts it into Double and returns its value. The value must be numeric or boolean or else an exception is thrown.
        Parameters:
        index -
        Returns:
      • add

        public final boolean add​(Object e)
        Appends the specified element to the end of the internal list.
        Parameters:
        e -
        Returns:
      • set

        public final Object set​(int index,
                                Object element)
        Replaces the element at the specified position in the internal list with the specified element and returns the previous value.
        Parameters:
        index -
        element -
        Returns:
      • addAll

        public final boolean addAll​(Collection<Object> c)
        Adds all the elements of the provided collection in the internal list.
        Parameters:
        c -
        Returns:
      • toFlatDataCollection

        public final FlatDataCollection toFlatDataCollection()
        Returns a FlatDataCollection with the values of the internal list without coping the data.
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object