public static class DoubleBigLists.Singleton extends AbstractDoubleBigList implements java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific big list.
AbstractDoubleBigList.DoubleSubList| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(java.util.Collection<? extends java.lang.Double> c)
This implementation delegates to the type-specific version of
BigList.addAll(long, Collection). |
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).
|
boolean |
addAll(DoubleCollection c)
Adds all elements of the given type-specific collection to this collection.
|
boolean |
addAll(long i,
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 i,
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 i,
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 |
clear()
This implementation delegates to
AbstractDoubleBigList.removeElements(long, long). |
java.lang.Object |
clone() |
boolean |
contains(double k)
Returns true if this list contains the specified element.
|
double |
getDouble(long i)
Returns the element at the specified position.
|
DoubleBigListIterator |
listIterator()
Returns a type-specific big-list iterator on this type-specific big list.
|
DoubleBigListIterator |
listIterator(long i)
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).
|
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeAll(DoubleCollection c)
Remove from this collection all elements in the given type-specific
collection.
|
double |
removeDouble(long i)
Removes the element at the specified position.
|
boolean |
retainAll(java.util.Collection<?> c) |
boolean |
retainAll(DoubleCollection c)
Retains in this collection only elements from the given type-specific
collection.
|
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. |
double[] |
toDoubleArray()
Returns a primitive type array containing the items of this collection.
|
add, add, add, addElements, addElements, compareTo, equals, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, peek, peekDouble, pop, popDouble, push, push, remove, removeElements, set, set, size, size, top, topDouble, toStringadd, contains, containsAll, remove, toArray, toDoubleArrayadd, contains, containsAll, remove, removeIf, removeIf, toArray, toDoubleArraycontainsAll, isEmpty, parallelStream, spliterator, stream, toArray, toArrayforEach, forEachpublic double getDouble(long i)
DoubleBigListgetDouble in interface DoubleBigListBigList.get(long)public boolean rem(double k)
AbstractDoubleBigList
This implementation delegates to indexOf().
rem in interface DoubleCollectionrem in class AbstractDoubleBigListCollection.remove(Object)public double removeDouble(long i)
AbstractDoubleBigList
This implementation always throws an UnsupportedOperationException.
removeDouble in interface DoubleBigListremoveDouble in class AbstractDoubleBigListBigList.remove(long)public boolean contains(double k)
AbstractDoubleBigList
This implementation delegates to indexOf().
contains in interface DoubleCollectioncontains in class AbstractDoubleBigListCollection.contains(Object)public double[] toDoubleArray()
DoubleCollectiontoDoubleArray in interface DoubleCollectiontoDoubleArray in class AbstractDoubleCollectionCollection.toArray()public DoubleBigListIterator listIterator()
AbstractDoubleBigList
Note that this specification strengthens the one given in
BigList.listIterator().
This implementation delegates to listIterator(0).
listIterator in interface BigList<java.lang.Double>listIterator in interface DoubleBigListlistIterator in class AbstractDoubleBigListBigList.listIterator()public DoubleBigListIterator listIterator(long i)
AbstractDoubleBigList
Note that this specification strengthens the one given in
BigList.listIterator(long).
This implementation is based on the random-access methods.
listIterator in interface BigList<java.lang.Double>listIterator in interface DoubleBigListlistIterator in class AbstractDoubleBigListi - 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<java.lang.Double>subList in interface DoubleBigListsubList in class AbstractDoubleBigListfrom - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)public boolean addAll(long i,
java.util.Collection<? extends java.lang.Double> c)
AbstractDoubleBigListaddAll in interface BigList<java.lang.Double>addAll in class AbstractDoubleBigListi - 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 boolean addAll(java.util.Collection<? extends java.lang.Double> c)
AbstractDoubleBigList
This implementation delegates to the type-specific version of
BigList.addAll(long, Collection).
addAll in interface java.util.Collection<java.lang.Double>addAll in class AbstractDoubleBigListpublic boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Double>removeAll in class java.util.AbstractCollection<java.lang.Double>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Double>retainAll in class java.util.AbstractCollection<java.lang.Double>public boolean addAll(DoubleBigList c)
AbstractDoubleBigList
This implementation delegates to the type-specific list version of
AbstractDoubleBigList.addAll(long, Collection).
addAll in interface DoubleBigListaddAll in class AbstractDoubleBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
DoubleBigList c)
AbstractDoubleBigList
This implementation delegates to the type-specific version of
AbstractDoubleBigList.addAll(long, Collection).
addAll in interface DoubleBigListaddAll in class AbstractDoubleBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
DoubleCollection c)
AbstractDoubleBigList
This implementation delegates to the type-specific version of
AbstractDoubleBigList.addAll(long, Collection).
addAll in interface DoubleBigListaddAll in class AbstractDoubleBigListList.addAll(int,java.util.Collection)public boolean addAll(DoubleCollection c)
AbstractDoubleBigList
This implementation delegates to the type-specific version of
AbstractDoubleBigList.addAll(long, Collection).
addAll in interface DoubleCollectionaddAll in class AbstractDoubleBigListc - a type-specific collection.true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean removeAll(DoubleCollection c)
DoubleCollectionremoveAll in interface DoubleCollectionremoveAll in class AbstractDoubleCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.removeAll(Collection)public boolean retainAll(DoubleCollection c)
DoubleCollectionretainAll in interface DoubleCollectionretainAll in class AbstractDoubleCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.retainAll(Collection)public void clear()
AbstractDoubleBigList
This implementation delegates to AbstractDoubleBigList.removeElements(long, long).
clear in interface java.util.Collection<java.lang.Double>clear in class AbstractDoubleBigListpublic long size64()
Size64public java.lang.Object clone()
clone in class java.lang.Object