public interface CharBag extends CharIterable
| Modifier and Type | Method and Description |
|---|---|
<V> Bag<V> |
collect(CharToObjectFunction<? extends V> function) |
boolean |
equals(Object o)
Follows the same general contract as
Bag.equals(Object). |
void |
forEachWithOccurrences(CharIntProcedure procedure)
For each distinct item, with the number of occurrences, execute the specified procedure.
|
int |
hashCode()
Follows the same general contract as
Bag.hashCode(). |
int |
occurrencesOf(char item)
The occurrences of a distinct item in the bag.
|
CharBag |
reject(CharPredicate predicate) |
CharBag |
select(CharPredicate predicate) |
int |
sizeDistinct()
The size of the Bag when counting only distinct elements.
|
ImmutableCharBag |
toImmutable()
Returns an immutable copy of this bag.
|
allSatisfy, anySatisfy, asLazy, average, charIterator, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringint sizeDistinct()
int occurrencesOf(char item)
void forEachWithOccurrences(CharIntProcedure procedure)
CharBag select(CharPredicate predicate)
select in interface CharIterableCharBag reject(CharPredicate predicate)
reject in interface CharIterable<V> Bag<V> collect(CharToObjectFunction<? extends V> function)
collect in interface CharIterableboolean equals(Object o)
Bag.equals(Object).int hashCode()
Bag.hashCode().ImmutableCharBag toImmutable()
Copyright © 2004–2017. All rights reserved.