public static class DoubleCollections.EmptyCollection extends AbstractDoubleCollection
| Constructor and Description |
|---|
EmptyCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(DoubleCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(double o)
A Type-Specific implementation of contains.
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAll(DoubleCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(DoubleCollection c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
DoubleIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remDouble(double o)
A Type-Specific implementation of remove.
|
boolean |
remIf(java.util.function.DoublePredicate filter)
A Type-Specific removeIf function to reduce (un)boxing.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
removeAll(DoubleCollection c)
A Type-Specific implementation of removeAll.
|
boolean |
removeIf(java.util.function.Predicate<? super java.lang.Double> filter)
Deprecated.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(DoubleCollection c)
A Type-Specific implementation of retainAll.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
double[] |
toDoubleArray()
A Type-Specific implementation of toArray that links to
AbstractDoubleCollection.toDoubleArray(double[]) with a newly created array. |
double[] |
toDoubleArray(double[] a)
A Type-Specific implementation of toArray.
|
add, addAll, containsparallelPrimitiveStream, primitiveStream, spliteratorforEach, forEachpublic boolean add(double o)
DoubleCollectiono - the element that should be addedpublic boolean addAll(DoubleCollection c)
DoubleCollectionaddAll in interface DoubleCollectionaddAll in class AbstractDoubleCollectionc - the collection of elements that should be addedpublic boolean contains(double o)
AbstractDoubleCollectioncontains in interface DoubleCollectioncontains in class AbstractDoubleCollectiono - the element that should be searched for.public boolean containsAll(DoubleCollection c)
AbstractDoubleCollectioncontainsAll in interface DoubleCollectioncontainsAll in class AbstractDoubleCollectionc - the collection that should be checked if it contains all elements.public boolean containsAny(DoubleCollection c)
AbstractDoubleCollectioncontainsAny in interface DoubleCollectioncontainsAny in class AbstractDoubleCollectionc - the elements that should be checked for@Deprecated public boolean containsAny(java.util.Collection<?> c)
AbstractDoubleCollectioncontainsAny in interface DoubleCollectioncontainsAny in class AbstractDoubleCollectionc - the elements that should be checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Double>containsAll in class java.util.AbstractCollection<java.lang.Double>public int hashCode()
hashCode in interface java.util.Collection<java.lang.Double>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Double>equals in class java.lang.Object@Deprecated public boolean remove(java.lang.Object o)
AbstractDoubleCollectionThis 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 AbstractDoubleCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Double>removeAll in class java.util.AbstractCollection<java.lang.Double>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Double>retainAll in class java.util.AbstractCollection<java.lang.Double>@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Double> filter)
DoubleCollectionThis default implementation delegates to the corresponding type-specific function.
public boolean remDouble(double o)
AbstractDoubleCollectionremDouble in interface DoubleCollectionremDouble in class AbstractDoubleCollectiono - the element that is searched forCollection.remove(Object)public boolean removeAll(DoubleCollection c)
AbstractDoubleCollectionremoveAll in interface DoubleCollectionremoveAll in class AbstractDoubleCollectionc - the elements that should be deletedCollection.removeAll(Collection)public boolean retainAll(DoubleCollection c)
AbstractDoubleCollectionretainAll in interface DoubleCollectionretainAll in class AbstractDoubleCollectionc - the elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.DoublePredicate filter)
DoubleCollectionRemoves elements that were selected by the filter
filter - Filters the elements that should be removedCollection.removeIf(Predicate)public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Double>toArray in class java.util.AbstractCollection<java.lang.Double>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Double>toArray in class java.util.AbstractCollection<java.lang.Double>public double[] toDoubleArray()
AbstractDoubleCollectionAbstractDoubleCollection.toDoubleArray(double[]) with a newly created array.toDoubleArray in interface DoubleCollectiontoDoubleArray in class AbstractDoubleCollectionCollection.toArray()public double[] toDoubleArray(double[] a)
AbstractDoubleCollectiontoDoubleArray in interface DoubleCollectiontoDoubleArray in class AbstractDoubleCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])public 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 AbstractDoubleCollectionCollection.iterator()public void clear()
clear in interface java.util.Collection<java.lang.Double>clear in class java.util.AbstractCollection<java.lang.Double>public int size()
size in interface java.util.Collection<java.lang.Double>size in class java.util.AbstractCollection<java.lang.Double>