public interface ImmutableBooleanBag extends ImmutableBooleanCollection, BooleanBag
Modifier and Type | Method and Description |
---|---|
ImmutableList<BooleanIntPair> |
bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(BooleanToObjectFunction<? extends V> function) |
ImmutableBooleanBag |
newWith(boolean element) |
ImmutableBooleanBag |
newWithAll(BooleanIterable elements) |
ImmutableBooleanBag |
newWithout(boolean element) |
ImmutableBooleanBag |
newWithoutAll(BooleanIterable elements) |
ImmutableBooleanBag |
reject(BooleanPredicate predicate) |
ImmutableBooleanBag |
select(BooleanPredicate predicate) |
ImmutableBooleanBag |
selectByOccurrences(IntPredicate predicate)
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
ImmutableList<BooleanIntPair> |
topOccurrences(int count)
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable
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
ImmutableBooleanBag select(BooleanPredicate predicate)
select
in interface BooleanBag
select
in interface BooleanIterable
select
in interface ImmutableBooleanCollection
ImmutableBooleanBag reject(BooleanPredicate predicate)
reject
in interface BooleanBag
reject
in interface BooleanIterable
reject
in interface ImmutableBooleanCollection
ImmutableBooleanBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface BooleanBag
ImmutableList<BooleanIntPair> 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 BooleanBag
ImmutableList<BooleanIntPair> 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 BooleanBag
<V> ImmutableBag<V> collect(BooleanToObjectFunction<? extends V> function)
collect
in interface BooleanBag
collect
in interface BooleanIterable
collect
in interface ImmutableBooleanCollection
ImmutableBooleanBag newWith(boolean element)
newWith
in interface ImmutableBooleanCollection
ImmutableBooleanBag newWithout(boolean element)
newWithout
in interface ImmutableBooleanCollection
ImmutableBooleanBag newWithAll(BooleanIterable elements)
newWithAll
in interface ImmutableBooleanCollection
ImmutableBooleanBag newWithoutAll(BooleanIterable elements)
newWithoutAll
in interface ImmutableBooleanCollection
Copyright © 2004–2016. All rights reserved.