Interface MutableFloatCollection
-
- All Superinterfaces:
FloatIterable
,PrimitiveIterable
- All Known Subinterfaces:
MutableFloatBag
,MutableFloatList
,MutableFloatSet
- All Known Implementing Classes:
AbstractMutableFloatKeySet
,AbstractMutableFloatValuesMap.AbstractFloatValuesCollection
,AbstractSynchronizedFloatCollection
,AbstractUnmodifiableFloatCollection
,ByteFloatHashMap.ValuesCollection
,CharFloatHashMap.ValuesCollection
,DoubleFloatHashMap.ValuesCollection
,FloatArrayList
,FloatBooleanHashMap.KeySet
,FloatByteHashMap.KeySet
,FloatCharHashMap.KeySet
,FloatDoubleHashMap.KeySet
,FloatFloatHashMap.KeySet
,FloatFloatHashMap.ValuesCollection
,FloatHashBag
,FloatHashSet
,FloatIntHashMap.KeySet
,FloatLongHashMap.KeySet
,FloatObjectHashMap.KeySet
,FloatShortHashMap.KeySet
,IntFloatHashMap.ValuesCollection
,LongFloatHashMap.ValuesCollection
,ObjectFloatHashMap.ValuesCollection
,ObjectFloatHashMapWithHashingStrategy.ValuesCollection
,ShortFloatHashMap.ValuesCollection
,SynchronizedFloatBag
,SynchronizedFloatCollection
,SynchronizedFloatList
,SynchronizedFloatSet
,UnmodifiableFloatBag
,UnmodifiableFloatCollection
,UnmodifiableFloatList
,UnmodifiableFloatSet
public interface MutableFloatCollection extends FloatIterable
This file was automatically generated from template file mutablePrimitiveCollection.stg.- Since:
- 3.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
add(float element)
boolean
addAll(float... source)
boolean
addAll(FloatIterable source)
MutableFloatCollection
asSynchronized()
MutableFloatCollection
asUnmodifiable()
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.MutableFloatIterator
floatIterator()
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.MutableFloatCollection
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)
MutableFloatCollection
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)
ImmutableFloatCollection
toImmutable()
MutableFloatCollection
with(float element)
MutableFloatCollection
withAll(FloatIterable elements)
MutableFloatCollection
without(float element)
MutableFloatCollection
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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Method Detail
-
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
boolean addAll(FloatIterable source)
-
remove
boolean remove(float value)
-
removeAll
boolean removeAll(FloatIterable source)
-
removeAll
boolean removeAll(float... source)
-
removeIf
default boolean removeIf(FloatPredicate predicate)
- Since:
- 9.1
-
retainAll
boolean retainAll(FloatIterable elements)
- Since:
- 5.0
- See Also:
Collection.retainAll(Collection)
-
retainAll
boolean retainAll(float... source)
- Since:
- 5.0
- See Also:
Collection.retainAll(Collection)
-
clear
void clear()
-
select
MutableFloatCollection select(FloatPredicate predicate)
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
MutableFloatCollection reject(FloatPredicate predicate)
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
<V> MutableCollection<V> collect(FloatToObjectFunction<? extends V> function)
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
MutableFloatCollection with(float element)
-
without
MutableFloatCollection without(float element)
-
withAll
MutableFloatCollection withAll(FloatIterable elements)
-
withoutAll
MutableFloatCollection withoutAll(FloatIterable elements)
-
asUnmodifiable
MutableFloatCollection asUnmodifiable()
-
asSynchronized
MutableFloatCollection asSynchronized()
-
toImmutable
ImmutableFloatCollection toImmutable()
-
tap
default MutableFloatCollection tap(FloatProcedure procedure)
- Specified by:
tap
in interfaceFloatIterable
- Since:
- 9.0.
-
newEmpty
default MutableFloatCollection newEmpty()
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-
-