Top Description Methods
org.eclipse.collections.api.collection.primitive

public Interface MutableFloatCollection

extends FloatIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.MutableFloatList, org.eclipse.collections.api.set.primitive.MutableFloatSet, org.eclipse.collections.api.bag.primitive.MutableFloatBag
Imports
java.util.Collection, org.eclipse.collections.api.FloatIterable, org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.FloatPredicate, org.eclipse.collections.api.block.procedure.primitive.FloatProcedure, org.eclipse.collections.api.iterator.MutableFloatIterator, org.eclipse.collections.api.collection.MutableCollection

This file was automatically generated from template file mutablePrimitiveCollection.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public boolean
add(float element)

public boolean
addAll(float... source)

public boolean
public MutableFloatCollection
public MutableFloatCollection
public void
public <V> MutableCollection<V>
collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.FloatIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public MutableFloatIterator
floatIterator()

Redeclares org.eclipse.collections.api.FloatIterable.floatIterator.

Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.

public default MutableFloatCollection
newEmpty()

Creates a new empty mutable version of the same collection type.

public MutableFloatCollection
reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.FloatIterable.reject.

Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.

public boolean
remove(float value)

public boolean
public boolean
removeAll(float... source)

public default boolean
public boolean
public boolean
retainAll(float... source)

public MutableFloatCollection
select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.FloatIterable.select.

Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.

public default MutableFloatCollection
public ImmutableFloatCollection
public MutableFloatCollection
with(float element)

public MutableFloatCollection
public MutableFloatCollection
without(float element)

public MutableFloatCollection
Inherited from org.eclipse.collections.api.FloatIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortmaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

addback to summary
public boolean add(float element)
addAllback to summary
public boolean addAll(float... source)
addAllback to summary
public boolean addAll(FloatIterable source)
asSynchronizedback to summary
public MutableFloatCollection asSynchronized()
asUnmodifiableback to summary
public MutableFloatCollection asUnmodifiable()
clearback to summary
public void clear()
collectback to summary
public <V> MutableCollection<V> collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.FloatIterable.collect.

Doc from org.eclipse.collections.api.FloatIterable.collect.

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.

floatIteratorback to summary
public MutableFloatIterator floatIterator()

Redeclares org.eclipse.collections.api.FloatIterable.floatIterator.

Doc from org.eclipse.collections.api.FloatIterable.floatIterator.

Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.

Annotations
@Override
newEmptyback to summary
public default MutableFloatCollection newEmpty()

Creates a new empty mutable version of the same collection type.

Since
9.2.
rejectback to summary
public MutableFloatCollection reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.FloatIterable.reject.

Doc from org.eclipse.collections.api.FloatIterable.reject.

Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.

Annotations
@Override
removeback to summary
public boolean remove(float value)
removeAllback to summary
public boolean removeAll(FloatIterable source)
removeAllback to summary
public boolean removeAll(float... source)
removeIfback to summary
public default boolean removeIf(FloatPredicate predicate)
Since
9.1
retainAllback to summary
public boolean retainAll(FloatIterable elements)
Since
5.0
See Also
Collection#retainAll(Collection)
retainAllback to summary
public boolean retainAll(float... source)
Since
5.0
See Also
Collection#retainAll(Collection)
selectback to summary
public MutableFloatCollection select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.FloatIterable.select.

Doc from org.eclipse.collections.api.FloatIterable.select.

Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.

Annotations
@Override
tapback to summary
public default MutableFloatCollection tap(FloatProcedure procedure)

Overrides default org.eclipse.collections.api.FloatIterable.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableFloatCollection toImmutable()
withback to summary
public MutableFloatCollection with(float element)
withAllback to summary
public MutableFloatCollection withAll(FloatIterable elements)
withoutback to summary
public MutableFloatCollection without(float element)
withoutAllback to summary
public MutableFloatCollection withoutAll(FloatIterable elements)