public interface DoubleBigList
extends it.unimi.dsi.fastutil.BigList<java.lang.Double>, it.unimi.dsi.fastutil.doubles.DoubleCollection, java.lang.Comparable<it.unimi.dsi.fastutil.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 and 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.
|
default boolean |
addAll(DoubleBigList l)
Appends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).
|
default boolean |
addAll(it.unimi.dsi.fastutil.doubles.DoubleList l)
Appends all of the elements in the specified type-specific list to the end of this type-specific big list (optional operation).
|
default 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).
|
default boolean |
addAll(long index,
it.unimi.dsi.fastutil.doubles.DoubleList l)
Inserts all of the elements in the specified type-specific list into this type-specific big list at the specified position (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.
|
default void |
getElements(long from,
double[] a,
int offset,
int length)
Copies (hopefully quickly) elements of this type-specific big list into the given 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.
|
it.unimi.dsi.fastutil.doubles.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.
|
it.unimi.dsi.fastutil.doubles.DoubleBigListIterator |
listIterator()
Returns a type-specific big-list iterator on this type-specific big list.
|
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.
|
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.
|
default void |
setElements(double[][] a)
Set (hopefully quickly) elements to match the array given.
|
default void |
setElements(long index,
double[][] a)
Set (hopefully quickly) elements to match the array given.
|
default void |
setElements(long index,
double[][] a,
long offset,
long length)
Set (hopefully quickly) elements to match the array given.
|
default 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, add, addAll, contains, contains, containsAll, doubleIterator, doubleParallelStream, doubleSpliterator, doubleStream, parallelStream, rem, remove, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toDoubleArray, toDoubleArrayaddAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArrayit.unimi.dsi.fastutil.doubles.DoubleBigListIterator iterator()
iterator in interface java.util.Collection<java.lang.Double>iterator in interface it.unimi.dsi.fastutil.doubles.DoubleCollectioniterator in interface it.unimi.dsi.fastutil.doubles.DoubleIterableiterator in interface java.lang.Iterable<java.lang.Double>Collection.iterator()it.unimi.dsi.fastutil.doubles.DoubleBigListIterator listIterator()
listIterator in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>BigList.listIterator()it.unimi.dsi.fastutil.doubles.DoubleBigListIterator listIterator(long index)
listIterator in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>BigList.listIterator(long)default it.unimi.dsi.fastutil.doubles.DoubleSpliterator spliterator()
BigList 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 java.util.Collection<java.lang.Double>spliterator in interface it.unimi.dsi.fastutil.doubles.DoubleCollectionspliterator in interface it.unimi.dsi.fastutil.doubles.DoubleIterablespliterator in interface java.lang.Iterable<java.lang.Double>DoubleBigList subList(long from, long to)
from, inclusive, to the index to, exclusive.subList in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>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.default void getElements(long from,
double[] a,
int offset,
int length)
from - the start index (inclusive).a - the destination array.offset - the offset into the destination 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.default void setElements(double[][] a)
a - the big array containing the elements.default void setElements(long index,
double[][] a)
index - the index at which to start setting elements.a - the big array containing the elements.default void setElements(long index,
double[][] a,
long offset,
long length)
ListIterator iter = listIterator(index);
long i = 0;
while (i < length) {
iter.next();
iter.set(BigArrays.get(a, offset + i++);
}
However, the exact implementation may be more efficient, taking into account
whether random access is faster or not, or at the discretion of subclasses,
abuse internals.index - the index at which to start setting 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,
it.unimi.dsi.fastutil.doubles.DoubleCollection 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)
add in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>@Deprecated java.lang.Double get(long index)
get in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>@Deprecated long indexOf(java.lang.Object o)
indexOf in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>@Deprecated long lastIndexOf(java.lang.Object o)
lastIndexOf in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>@Deprecated java.lang.Double remove(long index)
remove in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>@Deprecated
java.lang.Double set(long index,
java.lang.Double k)
set in interface it.unimi.dsi.fastutil.BigList<java.lang.Double>default boolean addAll(long index,
DoubleBigList l)
BigList.addAll(long,Collection)default boolean addAll(DoubleBigList l)
Collection.addAll(Collection)default boolean addAll(long index,
it.unimi.dsi.fastutil.doubles.DoubleList l)
BigList.addAll(long,Collection)default boolean addAll(it.unimi.dsi.fastutil.doubles.DoubleList l)
Collection.addAll(Collection)