public interface BooleanBag extends BooleanIterable
Modifier and Type | Method and Description |
---|---|
<V> Bag<V> |
collect(BooleanToObjectFunction<? extends V> function) |
boolean |
equals(Object o)
Follows the same general contract as
Bag.equals(Object) . |
void |
forEachWithOccurrences(BooleanIntProcedure 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(boolean item)
The occurrences of a distinct item in the bag.
|
BooleanBag |
reject(BooleanPredicate predicate) |
BooleanBag |
select(BooleanPredicate predicate) |
int |
sizeDistinct()
The size of the Bag when counting only distinct elements.
|
ImmutableBooleanBag |
toImmutable()
Returns an immutable copy of this bag.
|
allSatisfy, anySatisfy, asLazy, booleanIterator, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, noneSatisfy, toArray, toBag, toList, toSet
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
int sizeDistinct()
int occurrencesOf(boolean item)
void forEachWithOccurrences(BooleanIntProcedure procedure)
BooleanBag select(BooleanPredicate predicate)
select
in interface BooleanIterable
BooleanBag reject(BooleanPredicate predicate)
reject
in interface BooleanIterable
<V> Bag<V> collect(BooleanToObjectFunction<? extends V> function)
collect
in interface BooleanIterable
boolean equals(Object o)
Bag.equals(Object)
.int hashCode()
Bag.hashCode()
.ImmutableBooleanBag toImmutable()
Copyright © 2004–2016. All rights reserved.