public abstract class AbstractDoubleList extends AbstractDoubleCollection implements DoubleList
DoubleList interface.ISizeProvider.CollectionSize| Constructor and Description |
|---|
AbstractDoubleList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double e)
A Type-Specific implementation of add function that delegates to
List.add(int, Object) |
void |
add(int index,
java.lang.Double element)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Double> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(DoubleCollection c)
A Type-Specific implementation that iterates over the elements and adds them.
|
boolean |
addAll(DoubleList c)
A Type-Specific implementation that iterates over the elements and adds them.
|
AbstractDoubleList |
copy()
A Function that does a shallow clone of the Collection itself.
|
boolean |
equals(java.lang.Object o)
Compares if the list are the same.
|
int |
hashCode()
Generates the hashcode based on the values stored in the list.
|
int |
indexOf(double e)
The indexOf implementation iterates over all elements and compares them to the search value.
|
int |
indexOf(java.lang.Object o)
Deprecated.
|
DoubleIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
int |
lastIndexOf(double e)
The lastIndexOf implementation iterates over all elements and compares them to the search value.
|
int |
lastIndexOf(java.lang.Object o)
Deprecated.
|
DoubleListIterator |
listIterator()
A Type-Specific Iterator of listIterator
|
DoubleListIterator |
listIterator(int index)
A Type-Specific Iterator of listIterator
|
void |
size(int size)
A function to ensure the elements are within the requested size.
|
DoubleList |
subList(int fromIndex,
int toIndex)
A Type-Specific List of subList
|
boolean |
swapRemoveDouble(double e)
A Highly Optimized remove function that removes the desired element.
|
add, contains, contains, containsAll, containsAll, containsAny, containsAny, remDouble, remove, removeAll, removeAll, retainAll, retainAll, toDoubleArray, toDoubleArrayclear, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringadd, add, addAll, addAll, addElements, addElements, addElements, addIfAbsent, addIfPresent, contains, extractElements, fillBuffer, forEachIndexed, get, getDouble, getElements, getElements, remove, remove, removeDouble, removeElements, replaceAll, replaceDoubles, set, set, sort, sort, spliterator, swapRemove, synchronize, synchronize, unmodifiable, unstableSort, unstableSortaddAll, addAll, addAll, contains, containsAll, containsAny, containsAny, 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, repeat, sortedof, sizepublic boolean add(double e)
List.add(int, Object)add in interface DoubleCollectionadd in interface DoubleListe - the element to addList.add(Object)@Deprecated
public void add(int index,
java.lang.Double element)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.List<java.lang.Double>public boolean addAll(DoubleCollection c)
addAll in interface DoubleCollectionaddAll in class AbstractDoubleCollectionc - the elements that wants to be addedpublic boolean addAll(DoubleList c)
addAll in interface DoubleListc - the elements that wants to be added@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Double> c)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
addAll in interface java.util.Collection<java.lang.Double>addAll in interface java.util.List<java.lang.Double>addAll in class AbstractDoubleCollection@Deprecated public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<java.lang.Double>indexOf in interface DoubleListo - the value that the index is searched for.@Deprecated public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<java.lang.Double>lastIndexOf in interface DoubleListo - the value that the index is searched for.public int indexOf(double e)
indexOf in interface DoubleListe - the value that the index is searched for.public int lastIndexOf(double e)
lastIndexOf in interface DoubleListe - the value that the index is searched for.public boolean swapRemoveDouble(double e)
DoubleListswapRemoveDouble in interface DoubleListe - the element that should be removedpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Double>equals in interface java.util.List<java.lang.Double>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Double>hashCode in interface java.util.List<java.lang.Double>hashCode in class java.lang.Objectpublic DoubleList subList(int fromIndex, int toIndex)
DoubleListsubList in interface java.util.List<java.lang.Double>subList in interface DoubleListList.subList(int, int)public DoubleIterator iterator()
DoubleCollectioniterator in interface java.lang.Iterable<java.lang.Double>iterator in interface java.util.Collection<java.lang.Double>iterator in interface java.util.List<java.lang.Double>iterator in interface DoubleCollectioniterator in interface DoubleIterableiterator in class AbstractDoubleCollectionCollection.iterator()public DoubleListIterator listIterator()
DoubleListlistIterator in interface java.util.List<java.lang.Double>listIterator in interface DoubleListList.listIterator()public DoubleListIterator listIterator(int index)
DoubleListlistIterator in interface java.util.List<java.lang.Double>listIterator in interface DoubleListList.listIterator(int)public void size(int size)
DoubleListsize in interface DoubleListsize - the requested amount of elements/room for elementspublic AbstractDoubleList copy()
DoubleCollectioncopy in interface DoubleCollectioncopy in interface DoubleListcopy in class AbstractDoubleCollection