Interface MutableFloatCollection
- All Superinterfaces:
FloatIterable
,PrimitiveIterable
- All Known Subinterfaces:
MutableFloatBag
,MutableFloatList
,MutableFloatSet
- All Known Implementing Classes:
AbstractMutableFloatKeySet
,AbstractSynchronizedFloatCollection
,AbstractUnmodifiableFloatCollection
,FloatArrayList
,FloatHashBag
,FloatHashSet
,SynchronizedFloatBag
,SynchronizedFloatCollection
,SynchronizedFloatList
,SynchronizedFloatSet
,UnmodifiableFloatBag
,UnmodifiableFloatCollection
,UnmodifiableFloatList
,UnmodifiableFloatSet
This file was automatically generated from template file mutablePrimitiveCollection.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(float element) boolean
addAll
(float... source) boolean
addAll
(FloatIterable source) void
clear()
<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 MutableFloatCollection
newEmpty()
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.boolean
remove
(float value) boolean
removeAll
(float... source) boolean
removeAll
(FloatIterable source) default boolean
removeIf
(FloatPredicate predicate) boolean
retainAll
(float... source) boolean
retainAll
(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 MutableFloatCollection
tap
(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, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
Methods 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:FloatIterable
Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.- Specified by:
floatIterator
in 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:FloatIterable
Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.- Specified by:
select
in interfaceFloatIterable
-
reject
Description copied from interface:FloatIterable
Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.- Specified by:
reject
in interfaceFloatIterable
-
collect
Description copied from interface:FloatIterable
Returns 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:
collect
in interfaceFloatIterable
-
with
-
without
-
withAll
-
withoutAll
-
asUnmodifiable
MutableFloatCollection asUnmodifiable() -
asSynchronized
MutableFloatCollection asSynchronized() -
toImmutable
ImmutableFloatCollection toImmutable() -
tap
- Specified by:
tap
in interfaceFloatIterable
- Since:
- 9.0.
-
newEmpty
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-