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

public Interface ImmutableBooleanBag

extends ImmutableBooleanCollection, BooleanBag
Imports
org.eclipse.collections.api.BooleanIterable, org.eclipse.collections.api.bag.ImmutableBag, org.eclipse.collections.api.block.function.primitive.BooleanToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, .BooleanPredicate, org.eclipse.collections.api.block.procedure.primitive.BooleanProcedure, org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection, org.eclipse.collections.api.list.ImmutableList, org.eclipse.collections.api.tuple.primitive.BooleanIntPair, org.eclipse.collections.api.set.primitive.ImmutableBooleanSet

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

Method Summary

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

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

Returns the count least frequently occurring items.

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

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.collect, org.eclipse.collections.api.bag.primitive.BooleanBag.collect.

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

public ImmutableBooleanBag
public ImmutableBooleanBag
public ImmutableBooleanBag
public ImmutableBooleanBag
public ImmutableBooleanBag
reject(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.reject, org.eclipse.collections.api.bag.primitive.BooleanBag.reject.

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

public ImmutableBooleanBag
select(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.select, org.eclipse.collections.api.bag.primitive.BooleanBag.select.

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

public ImmutableBooleanBag
selectByOccurrences(IntPredicate predicate)

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

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

public default ImmutableBooleanBag
selectDuplicates()

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

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

public ImmutableBooleanSet
selectUnique()

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

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

public default ImmutableBooleanBag
public ImmutableList<BooleanIntPair>
topOccurrences(int count)

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

Returns the count most frequently occurring items.

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

Method Detail

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

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

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.collect, org.eclipse.collections.api.bag.primitive.BooleanBag.collect.

Doc from org.eclipse.collections.api.BooleanIterable.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 ImmutableBooleanBag newWith(boolean element)

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

Annotations
@Override
newWithAllback to summary
public ImmutableBooleanBag newWithAll(BooleanIterable elements)

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

Annotations
@Override
newWithoutback to summary
public ImmutableBooleanBag newWithout(boolean element)

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

Annotations
@Override
newWithoutAllback to summary
public ImmutableBooleanBag newWithoutAll(BooleanIterable elements)

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

Annotations
@Override
rejectback to summary
public ImmutableBooleanBag reject(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.reject, org.eclipse.collections.api.bag.primitive.BooleanBag.reject.

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

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

Annotations
@Override
selectback to summary
public ImmutableBooleanBag select(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.select, org.eclipse.collections.api.bag.primitive.BooleanBag.select.

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

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

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

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

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

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

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

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

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

Annotations
@Override
Since
9.2
tapback to summary
public default ImmutableBooleanBag tap(BooleanProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.ImmutableBooleanCollection.tap, org.eclipse.collections.api.bag.primitive.BooleanBag.tap.

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

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