Interface DoubleBigList

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(long index, double key)
      Inserts the specified element at the specified position in this type-specific big list (optional operation).
      void add​(long index, Double key)
      Deprecated.
      Please use the corresponding type-specific method instead.
      boolean addAll​(long index, DoubleBigList c)
      Inserts all of the elements in the specified type-specific big list into this type-specific big list at the specified position (optional operation).
      boolean addAll​(long index, DoubleCollection c)
      Inserts all of the elements in the specified type-specific collection into this type-specific big list at the specified position (optional operation).
      boolean addAll​(DoubleBigList c)
      Appends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).
      void addElements​(long index, double[][] a)
      Add (hopefully quickly) elements to this type-specific big list.
      void addElements​(long index, double[][] a, long offset, long length)
      Add (hopefully quickly) elements to this type-specific big list.
      Double get​(long index)
      Deprecated.
      Please use the corresponding type-specific method instead.
      double getDouble​(long index)
      Returns the element at the specified position.
      void getElements​(long from, double[][] a, long offset, long length)
      Copies (hopefully quickly) elements of this type-specific big list into the given big array.
      long indexOf​(double k)
      Returns the index of the first occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.
      long indexOf​(Object o)
      Deprecated.
      Please use the corresponding type-specific method instead.
      DoubleBigListIterator iterator()
      Returns a type-specific iterator on the elements of this list.
      long lastIndexOf​(double k)
      Returns the index of the last occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.
      long lastIndexOf​(Object o)
      Deprecated.
      Please use the corresponding type-specific method instead.
      DoubleBigListIterator listIterator()
      Returns a type-specific big-list iterator on this type-specific big list.
      DoubleBigListIterator listIterator​(long index)
      Returns a type-specific list iterator on this type-specific big list starting at a given index.
      Double remove​(long index)
      Deprecated.
      Please use the corresponding type-specific method instead.
      double removeDouble​(long index)
      Removes the element at the specified position.
      void removeElements​(long from, long to)
      Removes (hopefully quickly) elements of this type-specific big list.
      double set​(long index, double k)
      Replaces the element at the specified position in this big list with the specified element (optional operation).
      Double set​(long index, Double k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      DoubleBigList subList​(long from, long to)
      Returns a type-specific view of the portion of this type-specific big list from the index from, inclusive, to the index to, exclusive.
    • Method Detail

      • listIterator

        DoubleBigListIterator listIterator​(long index)
        Returns a type-specific list iterator on this type-specific big list starting at a given index.

        Note that this specification strengthens the one given in BigList.listIterator(long).

        Specified by:
        listIterator in interface BigList<Double>
        Parameters:
        index - index of first element to be returned from the big-list iterator.
        Returns:
        a big-list iterator of the elements in this big list, starting at the specified position in this big list.
        See Also:
        BigList.listIterator(long)
      • subList

        DoubleBigList subList​(long from,
                              long to)
        Returns a type-specific view of the portion of this type-specific big list from the index from, inclusive, to the index to, exclusive.

        Note that this specification strengthens the one given in BigList.subList(long,long).

        Specified by:
        subList in interface BigList<Double>
        Parameters:
        from - the starting element (inclusive).
        to - the ending element (exclusive).
        Returns:
        a big sublist view of this big list.
        See Also:
        BigList.subList(long,long)
      • getElements

        void getElements​(long from,
                         double[][] a,
                         long offset,
                         long length)
        Copies (hopefully quickly) elements of this type-specific big list into the given big array.
        Parameters:
        from - the start index (inclusive).
        a - the destination big array.
        offset - the offset into the destination big array where to store the first element copied.
        length - the number of elements to be copied.
      • removeElements

        void removeElements​(long from,
                            long to)
        Removes (hopefully quickly) elements of this type-specific big list.
        Parameters:
        from - the start index (inclusive).
        to - the end index (exclusive).
      • addElements

        void addElements​(long index,
                         double[][] a)
        Add (hopefully quickly) elements to this type-specific big list.
        Parameters:
        index - the index at which to add elements.
        a - the big array containing the elements.
      • addElements

        void addElements​(long index,
                         double[][] a,
                         long offset,
                         long length)
        Add (hopefully quickly) elements to this type-specific big list.
        Parameters:
        index - the index at which to add elements.
        a - the big array containing the elements.
        offset - the offset of the first element to add.
        length - the number of elements to add.
      • add

        void add​(long index,
                 double key)
        Inserts the specified element at the specified position in this type-specific big list (optional operation).
        See Also:
        BigList.add(long,Object)
      • addAll

        boolean addAll​(long index,
                       DoubleBigList c)
        Inserts all of the elements in the specified type-specific big list into this type-specific big list at the specified position (optional operation).
        See Also:
        List.addAll(int,java.util.Collection)
      • getDouble

        double getDouble​(long index)
        Returns the element at the specified position.
        See Also:
        BigList.get(long)
      • removeDouble

        double removeDouble​(long index)
        Removes the element at the specified position.
        See Also:
        BigList.remove(long)
      • set

        double set​(long index,
                   double k)
        Replaces the element at the specified position in this big list with the specified element (optional operation).
        See Also:
        BigList.set(long,Object)
      • indexOf

        long indexOf​(double k)
        Returns the index of the first occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.
        See Also:
        BigList.indexOf(Object)
      • lastIndexOf

        long lastIndexOf​(double k)
        Returns the index of the last occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.
        See Also:
        BigList.lastIndexOf(Object)
      • add

        @Deprecated
        void add​(long index,
                 Double key)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Inserts the specified element at the specified position in this big list (optional operation).
        Specified by:
        add in interface BigList<Double>
        Parameters:
        index - a position in the big list.
        key - an element to be inserted.
        See Also:
        List.add(int,Object)
      • get

        @Deprecated
        Double get​(long index)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Returns the element at the specified position.
        Specified by:
        get in interface BigList<Double>
        Parameters:
        index - a position in the big list.
        Returns:
        the element at the specified position.
        See Also:
        List.get(int)
      • indexOf

        @Deprecated
        long indexOf​(Object o)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Returns the index of the first occurrence of the specified element in this big list, or -1 if this big list does not contain the element.
        Specified by:
        indexOf in interface BigList<Double>
        Parameters:
        o - the object to search for.
        Returns:
        the index of the first occurrence of the specified element in this big list, or -1 if this big list does not contain the element.
        See Also:
        List.indexOf(Object)
      • lastIndexOf

        @Deprecated
        long lastIndexOf​(Object o)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Returns the index of the last occurrence of the specified element in this big list, or -1 if this big list does not contain the element.
        Specified by:
        lastIndexOf in interface BigList<Double>
        Parameters:
        o - the object to search for.
        Returns:
        the index of the last occurrence of the specified element in this big list, or -1 if this big list does not contain the element.
        See Also:
        List.lastIndexOf(Object)
      • remove

        @Deprecated
        Double remove​(long index)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Removes the element at the specified position.
        Specified by:
        remove in interface BigList<Double>
        Parameters:
        index - a position in the big list.
        Returns:
        the element previously at the specified position.
        See Also:
        List.remove(int)
      • set

        @Deprecated
        Double set​(long index,
                   Double k)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Replaces the element at the specified position in this big list with the specified element (optional operation).
        Specified by:
        set in interface BigList<Double>
        Parameters:
        index - a position in the big list.
        k - the element to be stored at the specified position.
        Returns:
        the element previously at the specified positions.
        See Also:
        List.set(int,Object)