CharBag, CharIterable, ImmutableCharCollection, PrimitiveIterablepublic interface ImmutableCharBag extends ImmutableCharCollection, CharBag
| Modifier and Type | Method | Description |
|---|---|---|
ImmutableList<CharIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(CharToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
ImmutableCharBag |
newWith(char element) |
|
ImmutableCharBag |
newWithAll(CharIterable elements) |
|
ImmutableCharBag |
newWithout(char element) |
|
ImmutableCharBag |
newWithoutAll(CharIterable elements) |
|
ImmutableCharBag |
reject(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return false for the specified predicate.
|
ImmutableCharBag |
select(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return true for the specified predicate.
|
ImmutableCharBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default ImmutableCharBag |
selectDuplicates() |
Returns all elements of the bag that have more than one occurrence.
|
ImmutableCharSet |
selectUnique() |
Returns all elements of the bag that have exactly one occurrence.
|
default ImmutableCharBag |
tap(CharProcedure procedure) |
|
ImmutableList<CharIntPair> |
topOccurrences(int count) |
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable, toStringOfItemToCountallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, charIterator, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableCharBag select(CharPredicate predicate)
CharIterableselect in interface CharBagselect in interface CharIterableselect in interface ImmutableCharCollectionImmutableCharBag reject(CharPredicate predicate)
CharIterablereject in interface CharBagreject in interface CharIterablereject in interface ImmutableCharCollectiondefault ImmutableCharBag tap(CharProcedure procedure)
tap in interface CharBagtap in interface CharIterabletap in interface ImmutableCharCollectionImmutableCharBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface CharBagdefault ImmutableCharBag selectDuplicates()
selectDuplicates in interface CharBagImmutableCharSet selectUnique()
selectUnique in interface CharBagImmutableList<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 CharBagImmutableList<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)
CharIterablecollect in interface CharBagcollect in interface CharIterablecollect in interface ImmutableCharCollectionImmutableCharBag newWith(char element)
newWith in interface ImmutableCharCollectionImmutableCharBag newWithout(char element)
newWithout in interface ImmutableCharCollectionImmutableCharBag newWithAll(CharIterable elements)
newWithAll in interface ImmutableCharCollectionImmutableCharBag newWithoutAll(CharIterable elements)
newWithoutAll in interface ImmutableCharCollectionCopyright © 2004–2019. All rights reserved.