public interface ImmutableCharBag extends ImmutableCharCollection, CharBag
Modifier and Type | Method and Description |
---|---|
ImmutableList<CharIntPair> |
bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(CharToObjectFunction<? extends V> function) |
ImmutableCharBag |
newWith(char element) |
ImmutableCharBag |
newWithAll(CharIterable elements) |
ImmutableCharBag |
newWithout(char element) |
ImmutableCharBag |
newWithoutAll(CharIterable elements) |
ImmutableCharBag |
reject(CharPredicate predicate) |
ImmutableCharBag |
select(CharPredicate predicate) |
ImmutableCharBag |
selectByOccurrences(IntPredicate predicate)
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
ImmutableList<CharIntPair> |
topOccurrences(int count)
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable
allSatisfy, anySatisfy, asLazy, average, charIterator, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableCharBag select(CharPredicate predicate)
select
in interface CharBag
select
in interface CharIterable
select
in interface ImmutableCharCollection
ImmutableCharBag reject(CharPredicate predicate)
reject
in interface CharBag
reject
in interface CharIterable
reject
in interface ImmutableCharCollection
ImmutableCharBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface CharBag
ImmutableList<CharIntPair> topOccurrences(int count)
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.topOccurrences
in interface CharBag
ImmutableList<CharIntPair> bottomOccurrences(int count)
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.bottomOccurrences
in interface CharBag
<V> ImmutableBag<V> collect(CharToObjectFunction<? extends V> function)
collect
in interface CharBag
collect
in interface CharIterable
collect
in interface ImmutableCharCollection
ImmutableCharBag newWith(char element)
newWith
in interface ImmutableCharCollection
ImmutableCharBag newWithout(char element)
newWithout
in interface ImmutableCharCollection
ImmutableCharBag newWithAll(CharIterable elements)
newWithAll
in interface ImmutableCharCollection
ImmutableCharBag newWithoutAll(CharIterable elements)
newWithoutAll
in interface ImmutableCharCollection
Copyright © 2004–2016. All rights reserved.