public static class FloatCollections.UnmodifiableCollection extends java.lang.Object implements FloatCollection
ISizeProvider.CollectionSize| 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(float[] e,
int offset,
int length)
A Type-Specific Array based addAll method to reduce the amount of Wrapping
|
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
|
FloatCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
int |
count(FloatPredicate filter)
Helper function to reduce stream usage that allows to count the valid elements.
|
boolean |
equals(java.lang.Object obj) |
float |
findFirst(FloatPredicate filter)
Helper function to reduce stream usage that allows to filter for the first match.
|
void |
forEach(java.util.function.Consumer<? super java.lang.Float> action)
Deprecated.
|
<E> void |
forEach(E input,
ObjectFloatConsumer<E> action)
Helper function to reduce Lambda usage and allow for more method references, since these are faster/cleaner.
|
void |
forEach(FloatConsumer action)
A Type Specific foreach function that reduces (un)boxing
|
void |
forEachIndexed(IntFloatConsumer action)
A Indexed forEach implementation that allows you to keep track of how many elements were already iterated over.
|
int |
hashCode() |
boolean |
isEmpty() |
FloatIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
matchesAll(FloatPredicate filter)
Helper function to reduce stream usage that allows to filter for all matches.
|
boolean |
matchesAny(FloatPredicate filter)
Helper function to reduce stream usage that allows to filter for any matches.
|
boolean |
matchesNone(FloatPredicate filter)
Helper function to reduce stream usage that allows to filter for no matches.
|
float |
reduce(float identity,
FloatFloatUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
float |
reduce(FloatFloatUnaryOperator operator)
Performs a reduction on the
elements of this Iterable
|
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 |
removeAll(FloatCollection c,
FloatConsumer r)
A Type-Specific removeAll function that reduces (un)boxing.
|
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 retainAll function that reduces (un)boxing.
|
boolean |
retainAll(FloatCollection c,
FloatConsumer r)
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.
|
java.lang.String |
toString() |
add, addAll, addAll, contains, parallelPrimitiveStream, pour, primitiveStream, spliterator, synchronize, synchronize, unmodifiablearrayflatMap, asAsync, distinct, filter, flatMap, limit, map, peek, pourAsList, pourAsSet, repeat, sortedofpublic 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 addAll(float[] e,
int offset,
int length)
FloatCollectionaddAll in interface FloatCollectione - the elements that should be addedoffset - where to start within the arraylength - how many elements of the array should be addedpublic boolean contains(float o)
FloatCollectioncontains in interface FloatCollectiono - the element that is checked 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 for@Deprecated public boolean containsAny(java.util.Collection<?> c)
FloatCollectioncontainsAny in interface FloatCollectionc - 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.Float>public int size()
size in interface java.util.Collection<java.lang.Float>size in interface ISizeProviderpublic 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()public FloatCollection copy()
FloatCollectioncopy in interface FloatCollection@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>@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Float> filter)
FloatCollectionThis default implementation delegates to the corresponding type-specific function.
removeIf in interface java.util.Collection<java.lang.Float>removeIf in interface FloatCollectionpublic 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 removeAll(FloatCollection c, FloatConsumer r)
FloatCollectionremoveAll in interface FloatCollectionc - the collection of elements that should be removedr - elements that got removedCollection.removeAll(Collection)public boolean retainAll(FloatCollection c)
FloatCollectionretainAll in interface FloatCollectionc - the collection of elements that should be keptCollection.retainAll(Collection)public boolean retainAll(FloatCollection c, FloatConsumer r)
FloatCollectionretainAll in interface FloatCollectionc - the collection of elements that should be keptr - elements that got removedCollection.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 FloatCollectiontoFloatArray in interface FloatIterableCollection.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[])public void forEach(FloatConsumer action)
FloatIterableforEach in interface FloatIterableaction - The action to be performed for each elementIterable.forEach(Consumer)@Deprecated public void forEach(java.util.function.Consumer<? super java.lang.Float> action)
FloatIterableThis default implementation delegates to the corresponding type-specific function.
forEach in interface java.lang.Iterable<java.lang.Float>forEach in interface FloatIterablepublic void forEachIndexed(IntFloatConsumer action)
FloatIterableforEachIndexed in interface FloatIterableaction - The action to be performed for each elementpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Float>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<java.lang.Float>equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic <E> void forEach(E input,
ObjectFloatConsumer<E> action)
FloatIterableforEach in interface FloatIterableE - the generic type of the Objectinput - the object that should be includedaction - The action to be performed for each elementpublic boolean matchesAny(FloatPredicate filter)
FloatIterablematchesAny in interface FloatIterablefilter - that should be appliedpublic boolean matchesNone(FloatPredicate filter)
FloatIterablematchesNone in interface FloatIterablefilter - that should be appliedpublic boolean matchesAll(FloatPredicate filter)
FloatIterablematchesAll in interface FloatIterablefilter - that should be appliedpublic float reduce(float identity,
FloatFloatUnaryOperator operator)
FloatIterablereduce in interface FloatIterableidentity - the start valueoperator - the operation that should be appliedpublic float reduce(FloatFloatUnaryOperator operator)
FloatIterablereduce in interface FloatIterableoperator - the operation that should be appliedpublic float findFirst(FloatPredicate filter)
FloatIterablefindFirst in interface FloatIterablefilter - that should be appliedpublic int count(FloatPredicate filter)
FloatIterablecount in interface FloatIterablefilter - that should be applied