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

public Interface MutableFloatBag

extends MutableFloatCollection, FloatBag
Imports
org.eclipse.collections.api.FloatIterable, org.eclipse.collections.api.bag.MutableBag, org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, .FloatPredicate, org.eclipse.collections.api.block.procedure.primitive.FloatProcedure, org.eclipse.collections.api.collection.primitive.MutableFloatCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.FloatIntPair, org.eclipse.collections.api.set.primitive.MutableFloatSet

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

Method Summary

Modifier and TypeMethod and Description
public void
addOccurrences(float item, int occurrences)

public MutableFloatBag
public MutableFloatBag
public MutableList<FloatIntPair>
bottomOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.FloatBag.bottomOccurrences.

Returns the count least frequently occurring items.

public <V> MutableBag<V>
collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.collect, org.eclipse.collections.api.bag.primitive.FloatBag.collect.

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

public default MutableFloatBag
newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableFloatCollection.newEmpty.

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

public MutableFloatBag
reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.reject, org.eclipse.collections.api.bag.primitive.FloatBag.reject.

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

public boolean
removeOccurrences(float item, int occurrences)

public MutableFloatBag
select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.select, org.eclipse.collections.api.bag.primitive.FloatBag.select.

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

public MutableFloatBag
selectByOccurrences(IntPredicate predicate)

Redeclares org.eclipse.collections.api.bag.primitive.FloatBag.selectByOccurrences.

Returns all elements of the bag that have a number of occurrences that satisfy the predicate.

public default MutableFloatBag
selectDuplicates()

Overrides default org.eclipse.collections.api.bag.primitive.FloatBag.selectDuplicates.

Returns all elements of the bag that have more than one occurrence.

public MutableFloatSet
selectUnique()

Redeclares org.eclipse.collections.api.bag.primitive.FloatBag.selectUnique.

Returns all elements of the bag that have exactly one occurrence.

public default MutableFloatBag
public ImmutableFloatBag
public MutableList<FloatIntPair>
topOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.FloatBag.topOccurrences.

Returns the count most frequently occurring items.

public MutableFloatBag
public MutableFloatBag
public MutableFloatBag
public MutableFloatBag
Inherited from org.eclipse.collections.api.bag.primitive.FloatBag:
equalsforEachWithOccurrenceshashCodeoccurrencesOfsizeDistincttoStringOfItemToCount
Inherited from org.eclipse.collections.api.collection.primitive.MutableFloatCollection:
addaddAlladdAllclearfloatIteratorremoveremoveAllremoveAllremoveIfretainAllretainAll

Method Detail

addOccurrencesback to summary
public void addOccurrences(float item, int occurrences)
asSynchronizedback to summary
public MutableFloatBag asSynchronized()

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableFloatBag asUnmodifiable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.asUnmodifiable.

Annotations
@Override
bottomOccurrencesback to summary
public MutableList<FloatIntPair> bottomOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.FloatBag.bottomOccurrences.

Returns the count least frequently occurring items. In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last item will be returned.

Annotations
@Override
Since
8.0
collectback to summary
public <V> MutableBag<V> collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.collect, org.eclipse.collections.api.bag.primitive.FloatBag.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.

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

Overrides default org.eclipse.collections.api.collection.primitive.MutableFloatCollection.newEmpty.

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

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.reject, org.eclipse.collections.api.bag.primitive.FloatBag.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
removeOccurrencesback to summary
public boolean removeOccurrences(float item, int occurrences)
selectback to summary
public MutableFloatBag select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.select, org.eclipse.collections.api.bag.primitive.FloatBag.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
selectByOccurrencesback to summary
public MutableFloatBag selectByOccurrences(IntPredicate predicate)

Redeclares org.eclipse.collections.api.bag.primitive.FloatBag.selectByOccurrences.

Returns all elements of the bag that have a number of occurrences that satisfy the predicate.

Annotations
@Override
Since
8.0
selectDuplicatesback to summary
public default MutableFloatBag selectDuplicates()

Overrides default org.eclipse.collections.api.bag.primitive.FloatBag.selectDuplicates.

Returns all elements of the bag that have more than one occurrence.

Annotations
@Override
Since
9.2
selectUniqueback to summary
public MutableFloatSet selectUnique()

Redeclares org.eclipse.collections.api.bag.primitive.FloatBag.selectUnique.

Returns all elements of the bag that have exactly one occurrence.

Annotations
@Override
Since
9.2
tapback to summary
public default MutableFloatBag tap(FloatProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.MutableFloatCollection.tap, org.eclipse.collections.api.bag.primitive.FloatBag.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableFloatBag toImmutable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.toImmutable, org.eclipse.collections.api.bag.primitive.FloatBag.toImmutable.

Returns an immutable copy of this bag.

Annotations
@Override
topOccurrencesback to summary
public MutableList<FloatIntPair> topOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.FloatBag.topOccurrences.

Returns the count most frequently occurring items. In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last item will be returned.

Annotations
@Override
Since
8.0
withback to summary
public MutableFloatBag with(float element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.with.

Annotations
@Override
withAllback to summary
public MutableFloatBag withAll(FloatIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.withAll.

Annotations
@Override
withoutback to summary
public MutableFloatBag without(float element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.without.

Annotations
@Override
withoutAllback to summary
public MutableFloatBag withoutAll(FloatIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableFloatCollection.withoutAll.

Annotations
@Override