public interface DoubleList extends DoubleCollection, java.util.List<java.lang.Double>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double e)
A Type-Specific add Function to reduce (un)boxing
|
default boolean |
add(java.lang.Double e)
Deprecated.
Please use the corresponding type-specific function instead.
|
void |
add(int index,
double e)
A Type-Specific add Function to reduce (un)boxing
|
boolean |
addAll(DoubleList c)
A Type-Specific and optimized addAll function that allows a faster transfer of elements
|
boolean |
addAll(int index,
DoubleCollection c)
A Type-Specific addAll Function to reduce (un)boxing
|
boolean |
addAll(int index,
DoubleList c)
A Type-Specific and optimized addAll function that allows a faster transfer of elements
|
default void |
addElements(double... a)
A function to fast add elements to the list
|
default void |
addElements(int from,
double... a)
A function to fast add elements to the list
|
void |
addElements(int from,
double[] a,
int offset,
int length)
A function to fast add elements to the list
|
default boolean |
addIfAbsent(double e)
A Helper function that will only add elements if it is not present.
|
default boolean |
addIfPresent(double e)
A Helper function that will only add elements if it is present.
|
default boolean |
contains(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
DoubleList |
copy()
A Function that does a shallow clone of the Collection itself.
|
double[] |
extractElements(int from,
int to)
A function to fast extract elements out of the list, this removes the elements that were fetched.
|
default void |
fillBuffer(java.nio.DoubleBuffer buffer)
Helper function that allows to fastFill a buffer reducing the duplication requirement
|
default java.lang.Double |
get(int index)
Deprecated.
Please use the corresponding type-specific function instead.
|
double |
getDouble(int index)
A Type-Specific get function to reduce (un)boxing
|
default double[] |
getElements(int from,
double[] a)
A function to fast fetch elements from the list
|
double[] |
getElements(int from,
double[] a,
int offset,
int length)
A function to fast fetch elements from the list
|
int |
indexOf(double e)
A Type-Specific indexOf function to reduce (un)boxing
|
default int |
indexOf(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
int |
lastIndexOf(double e)
A Type-Specific lastIndexOf function to reduce (un)boxing
|
default int |
lastIndexOf(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
DoubleListIterator |
listIterator()
A Type-Specific Iterator of listIterator
|
DoubleListIterator |
listIterator(int index)
A Type-Specific Iterator of listIterator
|
default java.lang.Double |
remove(int index)
Deprecated.
Please use the corresponding type-specific function instead.
|
default boolean |
remove(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
double |
removeDouble(int index)
A Type-Specific remove function to reduce (un)boxing
|
void |
removeElements(int from,
int to)
a function to fast remove elements from the list.
|
default void |
replaceAll(java.util.function.UnaryOperator<java.lang.Double> o)
Deprecated.
Please use the corresponding type-specific function instead.
|
default void |
replaceDoubles(java.util.function.DoubleUnaryOperator o)
A Type-Specific replace function to reduce (un)boxing
|
double |
set(int index,
double e)
A Type-Specific set function to reduce (un)boxing
|
default java.lang.Double |
set(int index,
java.lang.Double e)
Deprecated.
Please use the corresponding type-specific function instead.
|
void |
size(int size)
A function to ensure the elements are within the requested size.
|
default void |
sort(java.util.Comparator<? super java.lang.Double> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
default void |
sort(DoubleComparator c)
Sorts the elements specified by the Natural order either by using the Comparator or the elements
|
default DoubleSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
DoubleList |
subList(int from,
int to)
A Type-Specific List of subList
|
double |
swapRemove(int index)
A Highly Optimized remove function that removes the desired element.
|
boolean |
swapRemoveDouble(double e)
A Highly Optimized remove function that removes the desired element.
|
default DoubleList |
synchronize()
Creates a Wrapped List that is Synchronized
|
default DoubleList |
synchronize(java.lang.Object mutex)
Creates a Wrapped List that is Synchronized
|
default DoubleList |
unmodifiable()
Creates a Wrapped List that is unmodifiable
|
default void |
unstableSort(java.util.Comparator<? super java.lang.Double> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
default void |
unstableSort(DoubleComparator c)
Sorts the elements specified by the Natural order either by using the Comparator or the elements using a unstable sort
|
addAll, addAll, addAll, addAll, contains, containsAll, containsAny, containsAny, iterator, parallelPrimitiveStream, pour, primitiveStream, remDouble, remIf, removeAll, removeAll, removeIf, retainAll, retainAll, toDoubleArray, toDoubleArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedboolean add(double e)
add in interface DoubleCollectione - the element to addList.add(Object)void add(int index,
double e)
e - the element to addindex - index at which the specified element is to be insertedList.add(int, Object)default boolean addIfAbsent(double e)
e - the element to adddefault boolean addIfPresent(double e)
e - the element to addboolean addAll(int index,
DoubleCollection c)
c - the elements that need to be addedindex - index at which the specified elements is to be insertedList.addAll(int, java.util.Collection)boolean addAll(DoubleList c)
c - the elements that need to be addedboolean addAll(int index,
DoubleList c)
c - the elements that need to be addedindex - index at which the specified elements is to be inserteddouble getDouble(int index)
index - the index of the value that is requestedjava.lang.IndexOutOfBoundsException - if the index is not within the list rangeList.get(int)double set(int index,
double e)
index - index of the element to replacee - element to be stored at the specified positionjava.lang.IndexOutOfBoundsException - if the index is not within the list rangeList.set(int, Object)double removeDouble(int index)
index - the index of the element to be removedList.remove(int)int indexOf(double e)
e - the element that is searched forint lastIndexOf(double e)
e - the element that is searched fordefault void replaceDoubles(java.util.function.DoubleUnaryOperator o)
o - the action to replace the valuesjava.lang.NullPointerException - if o is nulldefault void addElements(double... a)
a - the elements that should be addedjava.lang.IndexOutOfBoundsException - if from is outside of the lists rangedefault void addElements(int from,
double... a)
from - the index where the elements should be added into the lista - the elements that should be addedjava.lang.IndexOutOfBoundsException - if from is outside of the lists rangevoid addElements(int from,
double[] a,
int offset,
int length)
from - the index where the elements should be added into the lista - the elements that should be addedoffset - the start index of the array should be read fromlength - how many elements should be read fromjava.lang.IndexOutOfBoundsException - if from is outside of the lists rangedefault double[] getElements(int from,
double[] a)
from - index where the list should be fetching elements froma - the array where the values should be inserted tojava.lang.NullPointerException - if the array is nulljava.lang.IndexOutOfBoundsException - if from is outside of the lists rangejava.lang.IllegalStateException - if offset or length are smaller then 0 or exceed the array lengthdouble[] getElements(int from,
double[] a,
int offset,
int length)
from - index where the list should be fetching elements froma - the array where the values should be inserted tooffset - the startIndex of where the array should be written tolength - the number of elements the values should be fetched fromjava.lang.NullPointerException - if the array is nulljava.lang.IndexOutOfBoundsException - if from is outside of the lists rangejava.lang.IllegalStateException - if offset or length are smaller then 0 or exceed the array lengthvoid removeElements(int from,
int to)
from - the start index of where the elements should be removed from (inclusive)to - the end index of where the elements should be removed to (exclusive)double swapRemove(int index)
index - the index of the element to be removedboolean swapRemoveDouble(double e)
e - the element that should be removeddouble[] extractElements(int from,
int to)
from - the start index of where the elements should be fetched from (inclusive)to - the end index of where the elements should be fetched to (exclusive)default void fillBuffer(java.nio.DoubleBuffer buffer)
buffer - where the data should be stored in.@Deprecated default void sort(java.util.Comparator<? super java.lang.Double> c)
This default implementation delegates to the corresponding type-specific function.
sort in interface java.util.List<java.lang.Double>default void sort(DoubleComparator c)
c - the sorter of the elements, can be nullList.sort(Comparator),
DoubleArrays.stableSort(double[], DoubleComparator)@Deprecated default void unstableSort(java.util.Comparator<? super java.lang.Double> c)
This default implementation delegates to the corresponding type-specific function.
c - the sorter of the elements, can be nulldefault void unstableSort(DoubleComparator c)
c - the sorter of the elements, can be nullList.sort(Comparator),
DoubleArrays.unstableSort(double[], DoubleComparator)DoubleListIterator listIterator()
listIterator in interface java.util.List<java.lang.Double>List.listIterator()DoubleListIterator listIterator(int index)
listIterator in interface java.util.List<java.lang.Double>List.listIterator(int)DoubleList subList(int from, int to)
subList in interface java.util.List<java.lang.Double>List.subList(int, int)default DoubleList synchronize()
synchronize in interface DoubleCollectionDoubleLists.synchronize(speiger.src.collections.doubles.lists.DoubleList)default DoubleList synchronize(java.lang.Object mutex)
synchronize in interface DoubleCollectionmutex - is the controller of the synchronization blockDoubleLists.synchronize(speiger.src.collections.doubles.lists.DoubleList)default DoubleList unmodifiable()
unmodifiable in interface DoubleCollectionDoubleLists.unmodifiable(speiger.src.collections.doubles.lists.DoubleList)void size(int size)
size - the requested amount of elements/room for elementsDoubleList copy()
DoubleCollectioncopy in interface DoubleCollection@Deprecated default boolean add(java.lang.Double e)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.Collection<java.lang.Double>add in interface DoubleCollectionadd in interface java.util.List<java.lang.Double>@Deprecated default java.lang.Double get(int index)
This default implementation delegates to the corresponding type-specific function.
get in interface java.util.List<java.lang.Double>@Deprecated
default java.lang.Double set(int index,
java.lang.Double e)
This default implementation delegates to the corresponding type-specific function.
set in interface java.util.List<java.lang.Double>@Deprecated default int indexOf(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
indexOf in interface java.util.List<java.lang.Double>@Deprecated default int lastIndexOf(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
lastIndexOf in interface java.util.List<java.lang.Double>@Deprecated default boolean contains(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
contains in interface java.util.Collection<java.lang.Double>contains in interface DoubleCollectioncontains in interface java.util.List<java.lang.Double>@Deprecated default boolean remove(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Double>remove in interface DoubleCollectionremove in interface java.util.List<java.lang.Double>@Deprecated default java.lang.Double remove(int index)
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.List<java.lang.Double>@Deprecated default void replaceAll(java.util.function.UnaryOperator<java.lang.Double> o)
This default implementation delegates to the corresponding type-specific function.
replaceAll in interface java.util.List<java.lang.Double>default DoubleSplititerator spliterator()
spliterator in interface java.util.Collection<java.lang.Double>spliterator in interface DoubleCollectionspliterator in interface DoubleIterablespliterator in interface java.lang.Iterable<java.lang.Double>spliterator in interface java.util.List<java.lang.Double>