public abstract class AbstractDoubleList extends AbstractDoubleCollection implements DoubleList
DoubleList interface.| Constructor and Description |
|---|
AbstractDoubleList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double e)
A Type-Specific implementation of add function that delegates to
DoubleList.add(int, double) |
void |
add(int index,
java.lang.Double element)
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.
|
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.
it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
|
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.
it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
|
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
|
add, addAll, contains, contains, containsAll, containsAny, containsAny, remDouble, remove, removeAll, retainAll, toDoubleArray, toDoubleArrayclear, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringadd, add, addAll, addAll, addElements, addElements, addElements, contains, extractElements, get, getDouble, getElements, getElements, remove, remove, removeDouble, removeElements, replaceAll, replaceDoubles, set, set, sort, sort, spliterator, unstableSort, unstableSortcontains, containsAll, containsAny, containsAny, parallelPrimitiveStream, primitiveStream, remDouble, remIf, removeAll, removeIf, retainAll, toDoubleArray, toDoubleArrayforEach, forEachpublic boolean add(double e)
DoubleList.add(int, double)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 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 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 elements