Interface MutableFloatCollection
- All Superinterfaces:
FloatIterable,PrimitiveIterable
- All Known Subinterfaces:
MutableFloatBag,MutableFloatList,MutableFloatSet
This file was automatically generated from template file mutablePrimitiveCollection.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(float element) booleanaddAll(float... source) booleanaddAll(FloatIterable source) voidclear()<V> MutableCollection<V>collect(FloatToObjectFunction<? extends V> function) Returns a new collection with the results of applying the specified function on each element of the source collection.Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.default MutableFloatCollectionnewEmpty()Creates a new empty mutable version of the same collection type.reject(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.booleanremove(float value) booleanremoveAll(float... source) booleanremoveAll(FloatIterable source) default booleanremoveIf(FloatPredicate predicate) booleanretainAll(float... source) booleanretainAll(FloatIterable elements) select(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.default MutableFloatCollectiontap(FloatProcedure procedure) with(float element) withAll(FloatIterable elements) without(float element) withoutAll(FloatIterable elements) Methods inherited from interface org.eclipse.collections.api.FloatIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Method Details
-
floatIterator
MutableFloatIterator floatIterator()Description copied from interface:FloatIterableReturns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.- Specified by:
floatIteratorin interfaceFloatIterable
-
add
boolean add(float element) -
addAll
boolean addAll(float... source) -
addAll
-
remove
boolean remove(float value) -
removeAll
-
removeAll
boolean removeAll(float... source) -
removeIf
- Since:
- 9.1
-
retainAll
- Since:
- 5.0
- See Also:
-
retainAll
boolean retainAll(float... source) - Since:
- 5.0
- See Also:
-
clear
void clear() -
select
Description copied from interface:FloatIterableReturns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.- Specified by:
selectin interfaceFloatIterable
-
reject
Description copied from interface:FloatIterableReturns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.- Specified by:
rejectin interfaceFloatIterable
-
collect
Description copied from interface:FloatIterableReturns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collectin interfaceFloatIterable
-
with
-
without
-
withAll
-
withoutAll
-
asUnmodifiable
MutableFloatCollection asUnmodifiable() -
asSynchronized
MutableFloatCollection asSynchronized() -
toImmutable
ImmutableFloatCollection toImmutable() -
tap
- Specified by:
tapin interfaceFloatIterable- Since:
- 9.0.
-
newEmpty
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-