public static class AbstractDoubleBigList.DoubleSubList extends AbstractDoubleBigList implements java.io.Serializable
AbstractDoubleBigList.DoubleRandomAccessSubList, AbstractDoubleBigList.DoubleSubList| Modifier and Type | Field and Description |
|---|---|
protected long |
from
Initial (inclusive) index of this sublist.
|
protected DoubleBigList |
l
The list this sublist restricts.
|
protected long |
to
Final (exclusive) index of this sublist.
|
| 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)
Inserts the specified element at the specified position in this type-specific big list (optional operation).
|
boolean |
addAll(long index,
java.util.Collection<? extends java.lang.Double> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
boolean |
addAll(long index,
DoubleBigList l)
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,
it.unimi.dsi.fastutil.doubles.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).
|
void |
addElements(long index,
double[][] a,
long offset,
long length)
Add (hopefully quickly) elements to this type-specific big list.
|
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.
|
it.unimi.dsi.fastutil.doubles.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)
Removes a single instance of the specified element from this collection, if it is present (optional operation).
|
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).
|
long |
size64() |
it.unimi.dsi.fastutil.doubles.DoubleSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this big-list.
|
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, addElements, clear, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, forEach, get, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, peek, peekDouble, pop, popDouble, push, push, remove, set, setElements, size, size, top, topDouble, toStringadd, contains, containsAll, containsAll, forEach, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toArray, toDoubleArray, toDoubleArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addAll, addAll, getElements, setElements, setElementsadd, contains, containsAll, doubleIterator, doubleParallelStream, doubleSpliterator, doubleStream, parallelStream, remove, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toDoubleArray, toDoubleArrayprotected final DoubleBigList l
protected final long from
protected long to
public DoubleSubList(DoubleBigList l, long from, long to)
public boolean add(double k)
AbstractDoubleBigListadd in interface it.unimi.dsi.fastutil.doubles.DoubleCollectionadd in class AbstractDoubleBigListpublic void add(long index,
double k)
AbstractDoubleBigListadd in interface DoubleBigListadd in class AbstractDoubleBigListBigList.add(long,Object)public boolean addAll(long index,
java.util.Collection<? extends java.lang.Double> c)
AbstractDoubleBigListaddAll in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>addAll in class AbstractDoubleBigListpublic double getDouble(long index)
DoubleBigListgetDouble in interface DoubleBigListBigList.get(long)public double removeDouble(long index)
AbstractDoubleBigListremoveDouble in interface DoubleBigListremoveDouble in class AbstractDoubleBigListBigList.remove(long)public double set(long index,
double k)
AbstractDoubleBigListset in interface DoubleBigListset in class AbstractDoubleBigListBigList.set(long,Object)public long size64()
size64 in interface it.unimi.dsi.fastutil.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 it.unimi.dsi.fastutil.doubles.DoubleBigListIterator listIterator(long index)
AbstractDoubleBigListlistIterator in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>listIterator in interface DoubleBigListlistIterator in class AbstractDoubleBigListBigList.listIterator(long)public it.unimi.dsi.fastutil.doubles.DoubleSpliterator spliterator()
DoubleBigListBigList spliterators must report at least Spliterator.SIZED and Spliterator.ORDERED.
See List.spliterator() for more documentation on the requirements
of the returned spliterator (despite BigList not being a List, most of the
same requirements apply.
spliterator in interface DoubleBigListspliterator in interface it.unimi.dsi.fastutil.doubles.DoubleCollectionspliterator in interface it.unimi.dsi.fastutil.doubles.DoubleIterablespliterator in interface java.lang.Iterable<java.lang.Double>spliterator in interface java.util.Collection<java.lang.Double>public DoubleBigList subList(long from, long to)
DoubleBigListfrom, inclusive, to the index to, exclusive.subList in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>subList in interface DoubleBigListsubList in class AbstractDoubleBigListBigList.subList(long,long)public boolean rem(double k)
AbstractDoubleBigListrem in interface it.unimi.dsi.fastutil.doubles.DoubleCollectionrem in class AbstractDoubleBigListCollection.remove(Object)public boolean addAll(long index,
it.unimi.dsi.fastutil.doubles.DoubleCollection c)
AbstractDoubleBigListaddAll in interface DoubleBigListaddAll in class AbstractDoubleBigListList.addAll(int,java.util.Collection)public boolean addAll(long index,
DoubleBigList l)
DoubleBigListaddAll in interface DoubleBigListBigList.addAll(long,Collection)