public static class AbstractDoubleBigList.DoubleSubList extends AbstractDoubleBigList implements Serializable
AbstractDoubleBigList.DoubleSubList| Constructor and Description |
|---|
DoubleSubList(DoubleBigList l,
long from,
long to) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double k) |
void |
add(long index,
double k) |
boolean |
addAll(long index,
Collection<? extends Double> c)
Inserts all of the elements in the specified collection into this big list at the specified position (optional operation).
|
boolean |
addAll(long index,
DoubleCollection c)
Delegates to a more generic method.
|
boolean |
addAll(long index,
DoubleList l) |
void |
addElements(long index,
double[][] a,
long offset,
long length)
Adds elements to this type-specific big list one-by-one.
|
void |
clear() |
double |
getDouble(long index) |
void |
getElements(long from,
double[][] a,
long offset,
long length)
Copies element of this type-specific big list into the given big array one-by-one.
|
DoubleBigListIterator |
listIterator(long index)
Returns a type-specific list iterator on this type-specific big list starting at a given index.
|
boolean |
rem(double k)
|
boolean |
remove(Object o)
Delegates to the type-specific
rem() method. |
double |
removeDouble(long index) |
void |
removeElements(long from,
long to)
Removes elements of this type-specific big list one-by-one.
|
double |
set(long index,
double k) |
long |
size64()
Returns the size of this data structure as a long.
|
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. |
add, addAll, addAll, addAll, addAll, addAll, addElements, compareTo, contains, equals, get, getDouble, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, peek, peekDouble, pop, popDouble, push, push, remove, remove, removeDouble, set, set, size, size, size, top, topDouble, toStringadd, contains, containsAll, containsAll, doubleIterator, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toDoubleArray, toDoubleArraycontainsAll, doubleIterator, removeAll, retainAll, toArray, toArray, toDoubleArray, toDoubleArrayadd, contains, containsAll, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArraypublic DoubleSubList(DoubleBigList l, long from, long to)
public boolean add(double k)
add in interface DoubleCollectionadd in class AbstractDoubleBigListCollection.add(Object)public void add(long index,
double k)
add in interface DoubleBigListadd in class AbstractDoubleBigListList.add(int,Object)public boolean addAll(long index,
Collection<? extends Double> c)
BigListaddAll in interface BigList<Double>addAll in class AbstractDoubleBigListindex - index at which to insert the first element from the specified collection.c - collection containing elements to be added to this big list.true if this big list changed as a result of the callList.addAll(int, Collection)public double getDouble(long index)
getDouble in interface DoubleBigListBigList.get(long)public double removeDouble(long index)
removeDouble in interface DoubleBigListremoveDouble in class AbstractDoubleBigListBigList.remove(long)public double set(long index,
double k)
set in interface DoubleBigListset in class AbstractDoubleBigListBigList.set(long,Object)public void clear()
clear in interface Collection<Double>clear in class AbstractCollection<Double>public long size64()
Size64public void getElements(long from,
double[][] a,
long offset,
long length)
AbstractDoubleBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface DoubleBigListgetElements in class AbstractDoubleBigListfrom - 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.public void removeElements(long from,
long to)
AbstractDoubleBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface DoubleBigListremoveElements in class AbstractDoubleBigListfrom - the start index (inclusive).to - the end index (exclusive).public void addElements(long index,
double[][] a,
long offset,
long length)
AbstractDoubleBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface DoubleBigListaddElements in class AbstractDoubleBigListindex - 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.public DoubleBigListIterator listIterator(long index)
DoubleBigListlistIterator in interface BigList<Double>listIterator in interface DoubleBigListlistIterator in class AbstractDoubleBigListindex - index of first element to be returned from the big-list iterator.BigList.listIterator(long)public DoubleBigList subList(long from, long to)
DoubleBigListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in BigList.subList(long,long).
subList in interface BigList<Double>subList in interface DoubleBigListsubList in class AbstractDoubleBigListfrom - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)public boolean rem(double k)
DoubleCollectionremove(), but the clash with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates remove().rem in interface DoubleCollectionrem in class AbstractDoubleBigListCollection.remove(Object)public boolean remove(Object o)
AbstractDoubleCollectionrem() method.remove in interface Collection<Double>remove in class AbstractDoubleCollectionpublic boolean addAll(long index,
DoubleCollection c)
AbstractDoubleBigListaddAll in interface DoubleBigListaddAll in class AbstractDoubleBigListList.addAll(int,java.util.Collection)public boolean addAll(long index,
DoubleList l)