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

public Interface MutableCharBag

extends MutableCharCollection, CharBag
Imports
org.eclipse.collections.api.CharIterable, org.eclipse.collections.api.bag.MutableBag, org.eclipse.collections.api.block.function.primitive.CharToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, .CharPredicate, org.eclipse.collections.api.block.procedure.primitive.CharProcedure, org.eclipse.collections.api.collection.primitive.MutableCharCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.CharIntPair, org.eclipse.collections.api.set.primitive.MutableCharSet

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

Method Summary

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

public MutableCharBag
public MutableCharBag
public MutableList<CharIntPair>
bottomOccurrences(int count)

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

Returns the count least frequently occurring items.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.collect, org.eclipse.collections.api.bag.primitive.CharBag.collect.

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

public default MutableCharBag
newEmpty()

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

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

public MutableCharBag
reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.reject, org.eclipse.collections.api.bag.primitive.CharBag.reject.

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

public boolean
removeOccurrences(char item, int occurrences)

public MutableCharBag
select(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.select, org.eclipse.collections.api.bag.primitive.CharBag.select.

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

public MutableCharBag
selectByOccurrences(IntPredicate predicate)

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

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

public default MutableCharBag
selectDuplicates()

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

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

public MutableCharSet
selectUnique()

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

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

public default MutableCharBag
public ImmutableCharBag
public MutableList<CharIntPair>
topOccurrences(int count)

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

Returns the count most frequently occurring items.

public MutableCharBag
public MutableCharBag
public MutableCharBag
public MutableCharBag
Inherited from org.eclipse.collections.api.bag.primitive.CharBag:
equalsforEachWithOccurrenceshashCodeoccurrencesOfsizeDistincttoStringOfItemToCount
Inherited from org.eclipse.collections.api.collection.primitive.MutableCharCollection:
addaddAlladdAllcharIteratorclearremoveremoveAllremoveAllremoveIfretainAllretainAll

Method Detail

addOccurrencesback to summary
public void addOccurrences(char item, int occurrences)
asSynchronizedback to summary
public MutableCharBag asSynchronized()

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

Annotations
@Override
asUnmodifiableback to summary
public MutableCharBag asUnmodifiable()

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

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

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.collect, org.eclipse.collections.api.bag.primitive.CharBag.collect.

Doc from org.eclipse.collections.api.CharIterable.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 MutableCharBag newEmpty()

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

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

Since
9.2.
rejectback to summary
public MutableCharBag reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.reject, org.eclipse.collections.api.bag.primitive.CharBag.reject.

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

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

Annotations
@Override
removeOccurrencesback to summary
public boolean removeOccurrences(char item, int occurrences)
selectback to summary
public MutableCharBag select(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.select, org.eclipse.collections.api.bag.primitive.CharBag.select.

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

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

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

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

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

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

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

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

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

Annotations
@Override
Since
9.2
tapback to summary
public default MutableCharBag tap(CharProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.MutableCharCollection.tap, org.eclipse.collections.api.bag.primitive.CharBag.tap.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableCharCollection.toImmutable, org.eclipse.collections.api.bag.primitive.CharBag.toImmutable.

Returns an immutable copy of this bag.

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

Redeclares org.eclipse.collections.api.bag.primitive.CharBag.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 MutableCharBag with(char element)

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

Annotations
@Override
withAllback to summary
public MutableCharBag withAll(CharIterable elements)

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

Annotations
@Override
withoutback to summary
public MutableCharBag without(char element)

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

Annotations
@Override
withoutAllback to summary
public MutableCharBag withoutAll(CharIterable elements)

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

Annotations
@Override