public static class FloatCollections.SynchronizedCollection extends java.lang.Object implements FloatCollection
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(float o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(java.util.Collection<? extends java.lang.Float> c) |
boolean |
addAll(FloatCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(float o)
A Type-Specific contains function to reduce (un)boxing
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAll(FloatCollection c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(FloatCollection c)
A Type-Specific containsAny function to reduce (un)boxing
|
boolean |
isEmpty() |
FloatIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remFloat(float 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(FloatCollection c)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(FloatCollection c)
A Type-Specific retainAll function that reduces (un)boxing.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
float[] |
toFloatArray()
A Type-Specific toArray function that delegates to
FloatCollection.toFloatArray(float[]) with a newly created array. |
float[] |
toFloatArray(float[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, contains, parallelPrimitiveStream, primitiveStream, removeIf, spliteratorforEach, forEachpublic boolean add(float o)
FloatCollectionadd in interface FloatCollectiono - the element that should be addedpublic boolean addAll(java.util.Collection<? extends java.lang.Float> c)
addAll in interface java.util.Collection<java.lang.Float>public boolean addAll(FloatCollection c)
FloatCollectionaddAll in interface FloatCollectionc - the collection of elements that should be addedpublic boolean contains(float o)
FloatCollectioncontains in interface FloatCollectiono - the element that is checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Float>@Deprecated public boolean containsAny(java.util.Collection<?> c)
FloatCollectioncontainsAny in interface FloatCollectionc - the collection of elements that should be tested forpublic boolean containsAll(FloatCollection c)
FloatCollectioncontainsAll in interface FloatCollectionc - the collection of elements that should be tested forpublic boolean containsAny(FloatCollection c)
FloatCollectioncontainsAny in interface FloatCollectionc - the collection of elements that should be tested forpublic int size()
size in interface java.util.Collection<java.lang.Float>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Float>public FloatIterator iterator()
FloatCollectioniterator in interface java.lang.Iterable<java.lang.Float>iterator in interface java.util.Collection<java.lang.Float>iterator in interface FloatCollectioniterator in interface FloatIterableCollection.iterator()@Deprecated public boolean remove(java.lang.Object o)
FloatCollectionThis default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Float>remove in interface FloatCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Float>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Float>public boolean remFloat(float o)
FloatCollectionremFloat in interface FloatCollectiono - the element that should be removedCollection.remove(Object)public boolean removeAll(FloatCollection c)
FloatCollectionremoveAll in interface FloatCollectionc - the collection of elements that should be removedCollection.removeAll(Collection)public boolean retainAll(FloatCollection c)
FloatCollectionretainAll in interface FloatCollectionc - the collection of elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.DoublePredicate filter)
FloatCollectionRemoves elements that were selected by the filter
remIf in interface FloatCollectionfilter - Filters the elements that should be removedCollection.removeIf(Predicate)public void clear()
clear in interface java.util.Collection<java.lang.Float>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Float>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Float>public float[] toFloatArray()
FloatCollectionFloatCollection.toFloatArray(float[]) with a newly created array.toFloatArray in interface FloatCollectionCollection.toArray()public float[] toFloatArray(float[] a)
FloatCollectiontoFloatArray in interface FloatCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])