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

public Interface MutableBooleanBag

extends MutableBooleanCollection, BooleanBag
Imports
org.eclipse.collections.api.BooleanIterable, org.eclipse.collections.api.bag.MutableBag, 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.MutableBooleanCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.BooleanIntPair, org.eclipse.collections.api.set.primitive.MutableBooleanSet

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

Method Summary

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

public MutableBooleanBag
public MutableBooleanBag
public MutableList<BooleanIntPair>
bottomOccurrences(int count)

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

Returns the count least frequently occurring items.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.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 default MutableBooleanBag
newEmpty()

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

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

public MutableBooleanBag
reject(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.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 boolean
removeOccurrences(boolean item, int occurrences)

public MutableBooleanBag
select(BooleanPredicate predicate)

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

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

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

public MutableBooleanSet
selectUnique()

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

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

public default MutableBooleanBag
public ImmutableBooleanBag
public MutableList<BooleanIntPair>
topOccurrences(int count)

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

Returns the count most frequently occurring items.

public MutableBooleanBag
public MutableBooleanBag
public MutableBooleanBag
public MutableBooleanBag
Inherited from org.eclipse.collections.api.bag.primitive.BooleanBag:
equalsforEachWithOccurrenceshashCodeoccurrencesOfsizeDistincttoStringOfItemToCount
Inherited from org.eclipse.collections.api.collection.primitive.MutableBooleanCollection:
addaddAlladdAllbooleanIteratorclearremoveremoveAllremoveAllremoveIfretainAllretainAll

Method Detail

addOccurrencesback to summary
public void addOccurrences(boolean item, int occurrences)
asSynchronizedback to summary
public MutableBooleanBag asSynchronized()

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

Annotations
@Override
asUnmodifiableback to summary
public MutableBooleanBag asUnmodifiable()

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

Annotations
@Override
bottomOccurrencesback to summary
public MutableList<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> MutableBag<V> collect(BooleanToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.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
newEmptyback to summary
public default MutableBooleanBag newEmpty()

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

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

Since
9.2.
rejectback to summary
public MutableBooleanBag reject(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.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
removeOccurrencesback to summary
public boolean removeOccurrences(boolean item, int occurrences)
selectback to summary
public MutableBooleanBag select(BooleanPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.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 MutableBooleanBag 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 MutableBooleanBag 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 MutableBooleanSet 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 MutableBooleanBag tap(BooleanProcedure procedure)

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

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableBooleanCollection.toImmutable, org.eclipse.collections.api.bag.primitive.BooleanBag.toImmutable.

Returns an immutable copy of this bag.

Annotations
@Override
topOccurrencesback to summary
public MutableList<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
withback to summary
public MutableBooleanBag with(boolean element)

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

Annotations
@Override
withAllback to summary
public MutableBooleanBag withAll(BooleanIterable elements)

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

Annotations
@Override
withoutback to summary
public MutableBooleanBag without(boolean element)

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

Annotations
@Override
withoutAllback to summary
public MutableBooleanBag withoutAll(BooleanIterable elements)

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

Annotations
@Override