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

public Interface ImmutableFloatBag

extends ImmutableFloatCollection, FloatBag
Imports
org.eclipse.collections.api.FloatIterable, org.eclipse.collections.api.bag.ImmutableBag, 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.ImmutableFloatCollection, org.eclipse.collections.api.list.ImmutableList, org.eclipse.collections.api.tuple.primitive.FloatIntPair, org.eclipse.collections.api.set.primitive.ImmutableFloatSet

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

Method Summary

Modifier and TypeMethod and Description
public ImmutableList<FloatIntPair>
bottomOccurrences(int count)

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

Returns the count least frequently occurring items.

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

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableFloatCollection.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 ImmutableFloatBag
public ImmutableFloatBag
public ImmutableFloatBag
public ImmutableFloatBag
public ImmutableFloatBag
reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableFloatCollection.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 ImmutableFloatBag
select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableFloatCollection.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 ImmutableFloatBag
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 ImmutableFloatBag
selectDuplicates()

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

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

public ImmutableFloatSet
selectUnique()

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

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

public default ImmutableFloatBag
public ImmutableList<FloatIntPair>
topOccurrences(int count)

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

Returns the count most frequently occurring items.

Inherited from org.eclipse.collections.api.bag.primitive.FloatBag:
equalsforEachWithOccurrenceshashCodeoccurrencesOfsizeDistincttoImmutabletoStringOfItemToCount

Method Detail

bottomOccurrencesback to summary
public ImmutableList<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> ImmutableBag<V> collect(FloatToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableFloatCollection.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
newWithback to summary
public ImmutableFloatBag newWith(float element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableFloatCollection.newWith.

Annotations
@Override
newWithAllback to summary
public ImmutableFloatBag newWithAll(FloatIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableFloatCollection.newWithAll.

Annotations
@Override
newWithoutback to summary
public ImmutableFloatBag newWithout(float element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableFloatCollection.newWithout.

Annotations
@Override
newWithoutAllback to summary
public ImmutableFloatBag newWithoutAll(FloatIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableFloatCollection.newWithoutAll.

Annotations
@Override
rejectback to summary
public ImmutableFloatBag reject(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableFloatCollection.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
selectback to summary
public ImmutableFloatBag select(FloatPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableFloatCollection.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 ImmutableFloatBag 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 ImmutableFloatBag 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 ImmutableFloatSet 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 ImmutableFloatBag tap(FloatProcedure procedure)

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

Annotations
@Override
Since
9.0.
topOccurrencesback to summary
public ImmutableList<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