return partitionMutableBag.toImmutable();
}
public ImmutableBooleanBag collectBoolean(final BooleanFunction<? super T> booleanFunction)
{
final BooleanHashBag result = new BooleanHashBag();
this.forEachWithOccurrences(new ObjectIntProcedure<T>()
{
public void value(T each, int occurrences)
{
result.addOccurrences(booleanFunction.booleanValueOf(each), occurrences);
}
});
return result.toImmutable();
}