Class AbstractDoubleBigList.DoubleSubList

    • Constructor Detail

      • DoubleSubList

        public DoubleSubList​(DoubleBigList l,
                             long from,
                             long to)
    • Method Detail

      • add

        public boolean add​(double k)
        Description copied from class: AbstractDoubleBigList
        Ensures that this collection contains the specified element (optional operation).

        This implementation always throws an UnsupportedOperationException.

        This implementation delegates to the type-specific version of BigList.add(long, Object).

        Specified by:
        add in interface DoubleCollection
        Overrides:
        add in class AbstractDoubleBigList
        See Also:
        Collection.add(Object)
      • addAll

        public boolean addAll​(long index,
                              java.util.Collection<? extends java.lang.Double> c)
        Description copied from class: AbstractDoubleBigList
        Adds all of the elements in the specified collection to this list (optional operation).
        Specified by:
        addAll in interface BigList<java.lang.Double>
        Overrides:
        addAll in class AbstractDoubleBigList
        Parameters:
        index - index at which to insert the first element from the specified collection.
        c - collection containing elements to be added to this big list.
        Returns:
        true if this big list changed as a result of the call
        See Also:
        List.addAll(int, Collection)
      • size64

        public long size64()
        Description copied from interface: Size64
        Returns the size of this data structure as a long.
        Specified by:
        size64 in interface Size64
        Returns:
        the size of this data structure.
      • getElements

        public void getElements​(long from,
                                double[][] a,
                                long offset,
                                long length)
        Description copied from class: AbstractDoubleBigList
        Copies (hopefully quickly) elements of this type-specific big list into the given big array.

        This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.

        Specified by:
        getElements in interface DoubleBigList
        Overrides:
        getElements in class AbstractDoubleBigList
        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

        public void removeElements​(long from,
                                   long to)
        Description copied from class: AbstractDoubleBigList
        Removes (hopefully quickly) elements of this type-specific big list.

        This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.

        Specified by:
        removeElements in interface DoubleBigList
        Overrides:
        removeElements in class AbstractDoubleBigList
        Parameters:
        from - the start index (inclusive).
        to - the end index (exclusive).
      • addElements

        public void addElements​(long index,
                                double[][] a,
                                long offset,
                                long length)
        Description copied from class: AbstractDoubleBigList
        Add (hopefully quickly) elements to this type-specific big list.

        This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.

        Specified by:
        addElements in interface DoubleBigList
        Overrides:
        addElements in class AbstractDoubleBigList
        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.
      • rem

        public boolean rem​(double k)
        Description copied from class: AbstractDoubleBigList
        Removes a single instance of the specified element from this collection, if it is present (optional operation).

        This implementation delegates to indexOf().

        Specified by:
        rem in interface DoubleCollection
        Overrides:
        rem in class AbstractDoubleBigList
        See Also:
        Collection.remove(Object)