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

public Interface ImmutableIntBag

extends ImmutableIntCollection, IntBag
Imports
org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.bag.ImmutableBag, org.eclipse.collections.api.block.function.primitive.IntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, org.eclipse.collections.api.collection.primitive.ImmutableIntCollection, org.eclipse.collections.api.list.ImmutableList, org.eclipse.collections.api.tuple.primitive.IntIntPair, org.eclipse.collections.api.set.primitive.ImmutableIntSet

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

Method Summary

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

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

Returns the count least frequently occurring items.

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

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.collect, org.eclipse.collections.api.bag.primitive.IntBag.collect.

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

public ImmutableIntBag
public ImmutableIntBag
public ImmutableIntBag
public ImmutableIntBag
public ImmutableIntBag
reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.reject, org.eclipse.collections.api.bag.primitive.IntBag.reject.

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

public ImmutableIntBag
select(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.select, org.eclipse.collections.api.bag.primitive.IntBag.select.

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

public ImmutableIntBag
selectByOccurrences(IntPredicate predicate)

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

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

public default ImmutableIntBag
selectDuplicates()

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

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

public ImmutableIntSet
selectUnique()

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

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

public default ImmutableIntBag
public ImmutableList<IntIntPair>
topOccurrences(int count)

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

Returns the count most frequently occurring items.

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

Method Detail

bottomOccurrencesback to summary
public ImmutableList<IntIntPair> bottomOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.IntBag.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(IntToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.collect, org.eclipse.collections.api.bag.primitive.IntBag.collect.

Doc from org.eclipse.collections.api.IntIterable.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 ImmutableIntBag newWith(int element)

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

Annotations
@Override
newWithAllback to summary
public ImmutableIntBag newWithAll(IntIterable elements)

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

Annotations
@Override
newWithoutback to summary
public ImmutableIntBag newWithout(int element)

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

Annotations
@Override
newWithoutAllback to summary
public ImmutableIntBag newWithoutAll(IntIterable elements)

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

Annotations
@Override
rejectback to summary
public ImmutableIntBag reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.reject, org.eclipse.collections.api.bag.primitive.IntBag.reject.

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

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

Annotations
@Override
selectback to summary
public ImmutableIntBag select(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.select, org.eclipse.collections.api.bag.primitive.IntBag.select.

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

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

Annotations
@Override
selectByOccurrencesback to summary
public ImmutableIntBag selectByOccurrences(IntPredicate predicate)

Redeclares org.eclipse.collections.api.bag.primitive.IntBag.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 ImmutableIntBag selectDuplicates()

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

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

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

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

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

Annotations
@Override
Since
9.2
tapback to summary
public default ImmutableIntBag tap(IntProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.tap, org.eclipse.collections.api.bag.primitive.IntBag.tap.

Annotations
@Override
Since
9.0.
topOccurrencesback to summary
public ImmutableList<IntIntPair> topOccurrences(int count)

Redeclares org.eclipse.collections.api.bag.primitive.IntBag.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