public static class FloatCollections.EmptyCollection extends AbstractFloatCollection
| Constructor and Description |
|---|
EmptyCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(float o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(FloatCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(float o)
A Type-Specific implementation of contains.
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAll(FloatCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(FloatCollection 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() |
FloatIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remFloat(float 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(FloatCollection c)
A Type-Specific implementation of removeAll.
|
boolean |
removeIf(java.util.function.Predicate<? super java.lang.Float> filter)
Deprecated.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(FloatCollection c)
A Type-Specific implementation of retainAll.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
float[] |
toFloatArray()
A Type-Specific implementation of toArray that links to
AbstractFloatCollection.toFloatArray(float[]) with a newly created array. |
float[] |
toFloatArray(float[] a)
A Type-Specific implementation of toArray.
|
add, addAll, containsparallelPrimitiveStream, primitiveStream, spliteratorforEach, forEachpublic boolean add(float o)
FloatCollectiono - the element that should be addedpublic boolean addAll(FloatCollection c)
FloatCollectionaddAll in interface FloatCollectionaddAll in class AbstractFloatCollectionc - the collection of elements that should be addedpublic boolean contains(float o)
AbstractFloatCollectioncontains in interface FloatCollectioncontains in class AbstractFloatCollectiono - the element that should be searched for.public boolean containsAll(FloatCollection c)
AbstractFloatCollectioncontainsAll in interface FloatCollectioncontainsAll in class AbstractFloatCollectionc - the collection that should be checked if it contains all elements.public boolean containsAny(FloatCollection c)
AbstractFloatCollectioncontainsAny in interface FloatCollectioncontainsAny in class AbstractFloatCollectionc - the elements that should be checked for@Deprecated public boolean containsAny(java.util.Collection<?> c)
AbstractFloatCollectioncontainsAny in interface FloatCollectioncontainsAny in class AbstractFloatCollectionc - the elements that should be checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Float>containsAll in class java.util.AbstractCollection<java.lang.Float>public int hashCode()
hashCode in interface java.util.Collection<java.lang.Float>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Float>equals in class java.lang.Object@Deprecated public boolean remove(java.lang.Object o)
AbstractFloatCollectionThis 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.Float>remove in interface FloatCollectionremove in class AbstractFloatCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Float>removeAll in class java.util.AbstractCollection<java.lang.Float>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Float>retainAll in class java.util.AbstractCollection<java.lang.Float>@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Float> filter)
FloatCollectionThis default implementation delegates to the corresponding type-specific function.
public boolean remFloat(float o)
AbstractFloatCollectionremFloat in interface FloatCollectionremFloat in class AbstractFloatCollectiono - the element that is searched forCollection.remove(Object)public boolean removeAll(FloatCollection c)
AbstractFloatCollectionremoveAll in interface FloatCollectionremoveAll in class AbstractFloatCollectionc - the elements that should be deletedCollection.removeAll(Collection)public boolean retainAll(FloatCollection c)
AbstractFloatCollectionretainAll in interface FloatCollectionretainAll in class AbstractFloatCollectionc - the elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.DoublePredicate filter)
FloatCollectionRemoves 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.Float>toArray in class java.util.AbstractCollection<java.lang.Float>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Float>toArray in class java.util.AbstractCollection<java.lang.Float>public float[] toFloatArray()
AbstractFloatCollectionAbstractFloatCollection.toFloatArray(float[]) with a newly created array.toFloatArray in interface FloatCollectiontoFloatArray in class AbstractFloatCollectionCollection.toArray()public float[] toFloatArray(float[] a)
AbstractFloatCollectiontoFloatArray in interface FloatCollectiontoFloatArray in class AbstractFloatCollectiona - 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 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 FloatIterableiterator in class AbstractFloatCollectionCollection.iterator()public void clear()
clear in interface java.util.Collection<java.lang.Float>clear in class java.util.AbstractCollection<java.lang.Float>public int size()
size in interface java.util.Collection<java.lang.Float>size in class java.util.AbstractCollection<java.lang.Float>