public static class DoubleCollections.UnmodifiableCollection extends java.lang.Object implements DoubleCollection
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(java.util.Collection<? extends java.lang.Double> c) |
boolean |
addAll(DoubleCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(double o)
A Type-Specific contains function to reduce (un)boxing
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAll(DoubleCollection c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(DoubleCollection c)
A Type-Specific containsAny function to reduce (un)boxing
|
boolean |
isEmpty() |
DoubleIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remDouble(double o)
A Type-Specific remove function that reduces (un)boxing.
|
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 removeAll function that reduces (un)boxing.
|
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 retainAll function that reduces (un)boxing.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
double[] |
toDoubleArray()
A Type-Specific toArray function that delegates to
DoubleCollection.toDoubleArray(double[]) with a newly created array. |
double[] |
toDoubleArray(double[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, contains, parallelPrimitiveStream, primitiveStream, spliteratorforEach, forEachpublic boolean add(double o)
DoubleCollectionadd in interface DoubleCollectiono - the element that should be addedpublic boolean addAll(java.util.Collection<? extends java.lang.Double> c)
addAll in interface java.util.Collection<java.lang.Double>public boolean addAll(DoubleCollection c)
DoubleCollectionaddAll in interface DoubleCollectionc - the collection of elements that should be addedpublic boolean contains(double o)
DoubleCollectioncontains in interface DoubleCollectiono - the element that is checked forpublic boolean containsAll(DoubleCollection c)
DoubleCollectioncontainsAll in interface DoubleCollectionc - the collection of elements that should be tested forpublic boolean containsAny(DoubleCollection c)
DoubleCollectioncontainsAny in interface DoubleCollectionc - the collection of elements that should be tested for@Deprecated public boolean containsAny(java.util.Collection<?> c)
DoubleCollectioncontainsAny in interface DoubleCollectionc - the collection of elements that should be tested for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Double>public int size()
size in interface java.util.Collection<java.lang.Double>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Double>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 DoubleIterableCollection.iterator()@Deprecated public boolean remove(java.lang.Object o)
DoubleCollectionThis default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Double>remove in interface DoubleCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Double>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<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.
removeIf in interface java.util.Collection<java.lang.Double>removeIf in interface DoubleCollectionpublic boolean remDouble(double o)
DoubleCollectionremDouble in interface DoubleCollectiono - the element that should be removedCollection.remove(Object)public boolean removeAll(DoubleCollection c)
DoubleCollectionremoveAll in interface DoubleCollectionc - the collection of elements that should be removedCollection.removeAll(Collection)public boolean retainAll(DoubleCollection c)
DoubleCollectionretainAll in interface DoubleCollectionc - the collection of elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.DoublePredicate filter)
DoubleCollectionRemoves elements that were selected by the filter
remIf in interface DoubleCollectionfilter - Filters the elements that should be removedCollection.removeIf(Predicate)public void clear()
clear in interface java.util.Collection<java.lang.Double>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Double>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Double>public double[] toDoubleArray()
DoubleCollectionDoubleCollection.toDoubleArray(double[]) with a newly created array.toDoubleArray in interface DoubleCollectionCollection.toArray()public double[] toDoubleArray(double[] a)
DoubleCollectiontoDoubleArray 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[])