BooleanBag
, BooleanIterable
, ImmutableBooleanCollection
, PrimitiveIterable
public interface ImmutableBooleanBag extends ImmutableBooleanCollection, BooleanBag
Modifier and Type | Method | Description |
---|---|---|
ImmutableList<BooleanIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(BooleanToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
ImmutableBooleanBag |
newWith(boolean element) |
|
ImmutableBooleanBag |
newWithAll(BooleanIterable elements) |
|
ImmutableBooleanBag |
newWithout(boolean element) |
|
ImmutableBooleanBag |
newWithoutAll(BooleanIterable elements) |
|
ImmutableBooleanBag |
reject(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return false for the specified predicate.
|
ImmutableBooleanBag |
select(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return true for the specified predicate.
|
ImmutableBooleanBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default ImmutableBooleanBag |
tap(BooleanProcedure procedure) |
|
ImmutableList<BooleanIntPair> |
topOccurrences(int count) |
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable
allSatisfy, anySatisfy, asLazy, booleanIterator, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reject, select, toArray, toBag, toList, toSet
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableBooleanBag select(BooleanPredicate predicate)
BooleanIterable
select
in interface BooleanBag
select
in interface BooleanIterable
select
in interface ImmutableBooleanCollection
ImmutableBooleanBag reject(BooleanPredicate predicate)
BooleanIterable
reject
in interface BooleanBag
reject
in interface BooleanIterable
reject
in interface ImmutableBooleanCollection
default ImmutableBooleanBag tap(BooleanProcedure procedure)
tap
in interface BooleanBag
tap
in interface BooleanIterable
tap
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)
BooleanIterable
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–2017. All rights reserved.