public static class DoubleBigLists.ListBigList extends AbstractDoubleBigList implements Serializable
AbstractDoubleBigList.DoubleSubList| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double key)
Ensures that this collection contains the specified element (optional operation).
|
void |
add(long index,
double key)
Inserts the specified element at the specified position in this type-specific big list (optional operation).
|
boolean |
addAll(Collection<? extends 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 index,
Collection<? extends Double> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
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).
|
void |
clear()
This implementation delegates to
AbstractDoubleBigList.removeElements(long, long). |
boolean |
contains(double key)
Returns true if this list contains the specified element.
|
boolean |
containsAll(Collection<?> c) |
boolean |
containsAll(DoubleCollection c)
Checks whether this collection contains all elements from the given type-specific collection.
|
double |
getDouble(long index)
Returns the element at the specified position.
|
int |
hashCode()
Returns the hash code for this big list, which is identical to
List.hashCode(). |
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.
|
boolean |
isEmpty()
Checks whether the stack is empty.
|
DoubleBigListIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
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.
|
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.
|
boolean |
removeAll(Collection<?> c) |
boolean |
removeAll(DoubleCollection c)
Remove from this collection all elements in the given type-specific collection.
|
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.
|
boolean |
retainAll(Collection<?> c) |
boolean |
retainAll(DoubleCollection c)
Retains in this collection only elements from the given type-specific collection.
|
double |
set(long index,
double k)
Replaces the element at the specified position in this big list with the specified element (optional operation).
|
void |
size(long size)
Sets the size of this big list.
|
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. |
<T> T[] |
toArray(T[] a) |
double[] |
toDoubleArray()
Returns a primitive type array containing the items of this collection.
|
double[] |
toDoubleArray(double[] a)
Deprecated.
|
add, addElements, addElements, compareTo, equals, get, getElements, indexOf, lastIndexOf, peek, peekDouble, pop, popDouble, push, push, rem, remove, set, size, top, topDouble, toStringadd, contains, remove, toArraytoArrayadd, contains, remove, removeIf, removeIf, toArrayparallelStream, spliterator, stream, toArrayforEach, forEachpublic long size64()
Size64public void size(long size)
BigListIf the specified size is smaller than the current size, the last elements are
discarded. Otherwise, they are filled with 0/null/false.
size in interface BigList<Double>size in class AbstractDoubleBigListsize - the new size.public DoubleBigListIterator iterator()
AbstractDoubleBigListNote that this specification strengthens the one given in
Iterable.iterator(), which was already
strengthened in the corresponding type-specific class,
but was weakened by the fact that this interface extends Collection.
This implementation delegates to AbstractDoubleBigList.listIterator().
iterator in interface DoubleBigListiterator in interface DoubleCollectioniterator in interface DoubleIterableiterator in interface Iterable<Double>iterator in interface Collection<Double>iterator in class AbstractDoubleBigListIterable.iterator()public DoubleBigListIterator listIterator()
AbstractDoubleBigListNote that this specification strengthens the one given in BigList.listIterator().
This implementation delegates to listIterator(0).
listIterator in interface BigList<Double>listIterator in interface DoubleBigListlistIterator in class AbstractDoubleBigListBigList.listIterator()public DoubleBigListIterator listIterator(long index)
AbstractDoubleBigListNote that this specification strengthens the one given in BigList.listIterator(long).
This implementation is based on the random-access methods.
listIterator 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 boolean addAll(long index,
Collection<? extends Double> c)
AbstractDoubleBigListaddAll 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 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 contains(double key)
AbstractDoubleBigListThis 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 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).@Deprecated public double[] toDoubleArray(double[] a)
AbstractDoubleCollectionNote that, contrarily to Collection.toArray(Object[]), this
methods just writes all elements of this collection: no special
value will be added after the last one.
toDoubleArray in interface DoubleCollectiontoDoubleArray in class AbstractDoubleCollectiona - if this array is big enough, it will be used to store this collection.Collection.toArray(Object[])public boolean addAll(long index,
DoubleCollection c)
AbstractDoubleBigListThis 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)
AbstractDoubleBigListThis 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 addAll(long index,
DoubleBigList c)
AbstractDoubleBigListThis 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(DoubleBigList c)
AbstractDoubleBigListThis 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 containsAll(DoubleCollection c)
DoubleCollectioncontainsAll in interface DoubleCollectioncontainsAll in class AbstractDoubleCollectionc - a type-specific collection.true if this collection contains all elements of the argument.Collection.containsAll(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 add(long index,
double key)
AbstractDoubleBigListThis implementation always throws an UnsupportedOperationException.
add in interface DoubleBigListadd in class AbstractDoubleBigListBigList.add(long,Object)public boolean add(double key)
AbstractDoubleBigListThis implementation always throws an UnsupportedOperationException.
This implementation delegates to the type-specific version of BigList.add(long, Object).
add in interface DoubleCollectionadd in class AbstractDoubleBigListCollection.add(Object)public double getDouble(long index)
DoubleBigListgetDouble in interface DoubleBigListBigList.get(long)public long indexOf(double k)
DoubleBigListindexOf in interface DoubleBigListindexOf in class AbstractDoubleBigListBigList.indexOf(Object)public long lastIndexOf(double k)
DoubleBigListlastIndexOf in interface DoubleBigListlastIndexOf in class AbstractDoubleBigListBigList.lastIndexOf(Object)public double removeDouble(long index)
AbstractDoubleBigListThis implementation always throws an UnsupportedOperationException.
removeDouble in interface DoubleBigListremoveDouble in class AbstractDoubleBigListBigList.remove(long)public double set(long index,
double k)
AbstractDoubleBigListThis implementation always throws an UnsupportedOperationException.
set in interface DoubleBigListset in class AbstractDoubleBigListBigList.set(long,Object)public boolean isEmpty()
StackisEmpty in interface Stack<Double>isEmpty in interface Collection<Double>isEmpty in class AbstractCollection<Double>public <T> T[] toArray(T[] a)
toArray in interface Collection<Double>toArray in class AbstractCollection<Double>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Double>containsAll in class AbstractCollection<Double>public boolean addAll(Collection<? extends Double> c)
AbstractDoubleBigListThis implementation delegates to the type-specific version of BigList.addAll(long, Collection).
addAll in interface Collection<Double>addAll in class AbstractDoubleBigListpublic boolean removeAll(Collection<?> c)
removeAll in interface Collection<Double>removeAll in class AbstractCollection<Double>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Double>retainAll in class AbstractCollection<Double>public void clear()
AbstractDoubleBigListThis implementation delegates to AbstractDoubleBigList.removeElements(long, long).
clear in interface Collection<Double>clear in class AbstractDoubleBigListpublic int hashCode()
AbstractDoubleBigListList.hashCode().hashCode in interface Collection<Double>hashCode in class AbstractDoubleBigList