CharBag
, CharIterable
, ImmutableCharCollection
, PrimitiveIterable
public 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, toStringOfItemToCount
allSatisfy, 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, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableCharBag select(CharPredicate predicate)
CharIterable
select
in interface CharBag
select
in interface CharIterable
select
in interface ImmutableCharCollection
ImmutableCharBag reject(CharPredicate predicate)
CharIterable
reject
in interface CharBag
reject
in interface CharIterable
reject
in interface ImmutableCharCollection
default ImmutableCharBag tap(CharProcedure procedure)
tap
in interface CharBag
tap
in interface CharIterable
tap
in interface ImmutableCharCollection
ImmutableCharBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface CharBag
default ImmutableCharBag selectDuplicates()
selectDuplicates
in interface CharBag
ImmutableCharSet selectUnique()
selectUnique
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)
CharIterable
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–2019. All rights reserved.