BigList<java.lang.Double>, java.util.Collection<java.lang.Double>, java.lang.Comparable<BigList<? extends java.lang.Double>>, DoubleCollection, DoubleIterable, java.lang.Iterable<java.lang.Double>, Size64AbstractDoubleBigList, AbstractDoubleBigList.DoubleSubList, DoubleBigArrayBigList, DoubleBigLists.EmptyBigList, DoubleBigLists.ListBigList, DoubleBigLists.Singleton, DoubleBigLists.SynchronizedBigList, DoubleBigLists.UnmodifiableBigListpublic interface DoubleBigList extends BigList<java.lang.Double>, DoubleCollection, Size64, java.lang.Comparable<BigList<? extends java.lang.Double>>
BigList; provides some additional methods that use
polymorphism to avoid (un)boxing.
Additionally, this interface strengthens iterator(),
listIterator(), listIterator(long) and
subList(long,long).
Besides polymorphic methods, this interfaces specifies methods to copy into an array or remove contiguous sublists. Although the abstract implementation of this interface provides simple, one-by-one implementations of these methods, it is expected that concrete implementation override them with optimized versions.
List| Modifier and Type | Method | Description |
|---|---|---|
void |
add(long index,
double key) |
Inserts the specified element at the specified position in this type-specific
big list (optional operation).
|
void |
add(long index,
java.lang.Double key) |
Deprecated.
Please use the corresponding type-specific method instead.
|
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).
|
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).
|
void |
addElements(long index,
double[][] a) |
Add (hopefully quickly) elements to this type-specific big list.
|
void |
addElements(long index,
double[][] a,
long offset,
long length) |
Add (hopefully quickly) elements to this type-specific big list.
|
java.lang.Double |
get(long index) |
Deprecated.
Please use the corresponding type-specific method instead.
|
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.
|
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.
|
long |
indexOf(java.lang.Object o) |
Deprecated.
Please use the corresponding type-specific method instead.
|
DoubleBigListIterator |
iterator() |
Returns a type-specific iterator on the elements of this list.
|
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.
|
long |
lastIndexOf(java.lang.Object o) |
Deprecated.
Please use the corresponding type-specific method instead.
|
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.
|
java.lang.Double |
remove(long index) |
Deprecated.
Please use the corresponding type-specific method instead.
|
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).
|
java.lang.Double |
set(long index,
java.lang.Double k) |
Deprecated.
Please use the corresponding type-specific method instead.
|
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. |
addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, spliterator, stream, toArray, toArrayadd, add, addAll, contains, contains, containsAll, rem, remove, removeAll, removeIf, removeIf, retainAll, toArray, toDoubleArray, toDoubleArrayforEach, forEachDoubleBigListIterator iterator()
Note that this specification strengthens the one given in
Collection.iterator().
iterator in interface java.util.Collection<java.lang.Double>iterator in interface DoubleCollectioniterator in interface DoubleIterableiterator in interface java.lang.Iterable<java.lang.Double>Collection.iterator()DoubleBigListIterator listIterator()
Note that this specification strengthens the one given in
BigList.listIterator().
listIterator in interface BigList<java.lang.Double>BigList.listIterator()DoubleBigListIterator listIterator(long index)
Note that this specification strengthens the one given in
BigList.listIterator(long).
listIterator in interface BigList<java.lang.Double>index - index of first element to be returned from the big-list iterator.BigList.listIterator(long)DoubleBigList subList(long from, long to)
from, 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>from - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)void getElements(long from,
double[][] a,
long offset,
long length)
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.void removeElements(long from,
long to)
from - the start index (inclusive).to - the end index (exclusive).void addElements(long index,
double[][] a)
index - the index at which to add elements.a - the big array containing the elements.void addElements(long index,
double[][] a,
long offset,
long length)
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.void add(long index,
double key)
BigList.add(long,Object)boolean addAll(long index,
DoubleCollection c)
List.addAll(int,java.util.Collection)boolean addAll(long index,
DoubleBigList c)
List.addAll(int,java.util.Collection)boolean addAll(DoubleBigList c)
List.addAll(int,java.util.Collection)double getDouble(long index)
BigList.get(long)double removeDouble(long index)
BigList.remove(long)double set(long index,
double k)
BigList.set(long,Object)long indexOf(double k)
BigList.indexOf(Object)long lastIndexOf(double k)
BigList.lastIndexOf(Object)@Deprecated
void add(long index,
java.lang.Double key)
@Deprecated java.lang.Double get(long index)
@Deprecated long indexOf(java.lang.Object o)
@Deprecated long lastIndexOf(java.lang.Object o)
lastIndexOf in interface BigList<java.lang.Double>o - the object to search for.List.lastIndexOf(Object)@Deprecated java.lang.Double remove(long index)
@Deprecated
java.lang.Double set(long index,
java.lang.Double k)