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

public Interface ImmutableCharBag

extends ImmutableCharCollection, CharBag
Imports
org.eclipse.collections.api.CharIterable, org.eclipse.collections.api.bag.ImmutableBag, 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.ImmutableCharCollection, org.eclipse.collections.api.list.ImmutableList, org.eclipse.collections.api.tuple.primitive.CharIntPair, org.eclipse.collections.api.set.primitive.ImmutableCharSet

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

Method Summary

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

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

Returns the count least frequently occurring items.

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

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.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 ImmutableCharBag
public ImmutableCharBag
public ImmutableCharBag
public ImmutableCharBag
public ImmutableCharBag
reject(CharPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.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 ImmutableCharBag
select(CharPredicate predicate)

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

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

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

public ImmutableCharSet
selectUnique()

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

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

public default ImmutableCharBag
public ImmutableList<CharIntPair>
topOccurrences(int count)

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

Returns the count most frequently occurring items.

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

Method Detail

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

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

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

Annotations
@Override
newWithAllback to summary
public ImmutableCharBag newWithAll(CharIterable elements)

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

Annotations
@Override
newWithoutback to summary
public ImmutableCharBag newWithout(char element)

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

Annotations
@Override
newWithoutAllback to summary
public ImmutableCharBag newWithoutAll(CharIterable elements)

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

Annotations
@Override
rejectback to summary
public ImmutableCharBag reject(CharPredicate predicate)

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

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableCharCollection.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 ImmutableCharBag 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 ImmutableCharBag 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 ImmutableCharSet 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 ImmutableCharBag tap(CharProcedure procedure)

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

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