public abstract class AbstractDoubleCollection extends java.util.AbstractCollection<java.lang.Double> implements DoubleCollection
| Constructor and Description |
|---|
AbstractDoubleCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Double e)
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 addAll function to reduce (un)boxing
|
boolean |
contains(double e)
A Type-Specific implementation of contains.
|
boolean |
contains(java.lang.Object e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
containsAll(DoubleCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
if this is a primitive collection
|
boolean |
containsAny(DoubleCollection c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection.
|
abstract DoubleIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remDouble(double e)
A Type-Specific implementation of remove.
|
boolean |
remove(java.lang.Object e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
removeAll(DoubleCollection c)
A Type-Specific implementation of removeAll.
|
boolean |
retainAll(DoubleCollection c)
A Type-Specific implementation of retainAll.
|
double[] |
toDoubleArray()
A Type-Specific implementation of toArray that links to
toDoubleArray(double[]) with a newly created array. |
double[] |
toDoubleArray(double[] a)
A Type-Specific implementation of toArray.
|
clear, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, parallelPrimitiveStream, primitiveStream, remIf, removeIf, spliteratorclear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArrayforEach, forEachpublic abstract DoubleIterator iterator()
DoubleCollectioniterator in interface java.lang.Iterable<java.lang.Double>iterator in interface java.util.Collection<java.lang.Double>iterator in interface DoubleCollectioniterator in interface DoubleIterableiterator in class java.util.AbstractCollection<java.lang.Double>Collection.iterator()@Deprecated public 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 class java.util.AbstractCollection<java.lang.Double>public boolean addAll(DoubleCollection c)
DoubleCollectionaddAll in interface DoubleCollectionc - the collection of elements that should be added@Deprecated public boolean contains(java.lang.Object e)
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 class java.util.AbstractCollection<java.lang.Double>public boolean contains(double e)
contains in interface DoubleCollectione - the element that should be searched for.@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Double> c)
This default implementation delegates to the corresponding type-specific function.
addAll in interface java.util.Collection<java.lang.Double>addAll in class java.util.AbstractCollection<java.lang.Double>public boolean containsAll(DoubleCollection c)
containsAll in interface DoubleCollectionc - the collection that should be checked if it contains all elements.java.lang.NullPointerException - if the collection is null@Deprecated public boolean containsAny(java.util.Collection<?> c)
containsAny in interface DoubleCollectionc - the elements that should be checked forjava.lang.NullPointerException - if the collection is nullpublic boolean containsAny(DoubleCollection c)
containsAny in interface DoubleCollectionc - the elements that should be checked forjava.lang.NullPointerException - if the collection is null@Deprecated public boolean remove(java.lang.Object e)
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 class java.util.AbstractCollection<java.lang.Double>public boolean remDouble(double e)
remDouble in interface DoubleCollectione - the element that is searched forCollection.remove(Object)public boolean removeAll(DoubleCollection c)
removeAll in interface DoubleCollectionc - the elements that should be deletedjava.lang.NullPointerException - if the collection is nullCollection.removeAll(Collection)public boolean retainAll(DoubleCollection c)
retainAll in interface DoubleCollectionc - the elements that should be keptjava.lang.NullPointerException - if the collection is nullCollection.retainAll(Collection)public double[] toDoubleArray()
toDoubleArray(double[]) with a newly created array.toDoubleArray in interface DoubleCollectionCollection.toArray()public double[] toDoubleArray(double[] a)
toDoubleArray in interface DoubleCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])