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)
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 |
selectDuplicates()
Returns all elements of the bag that have more than one occurrence.
|
ImmutableBooleanSet |
selectUnique()
Returns all elements of the bag that have exactly one occurrence.
|
default ImmutableBooleanBag |
tap(BooleanProcedure procedure) |
ImmutableList<BooleanIntPair> |
topOccurrences(int count)
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable, toStringOfItemToCountallSatisfy, anySatisfy, asLazy, booleanIterator, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableBooleanBag select(BooleanPredicate predicate)
BooleanIterableselect in interface BooleanBagselect in interface BooleanIterableselect in interface ImmutableBooleanCollectionImmutableBooleanBag reject(BooleanPredicate predicate)
BooleanIterablereject in interface BooleanBagreject in interface BooleanIterablereject in interface ImmutableBooleanCollectiondefault ImmutableBooleanBag tap(BooleanProcedure procedure)
tap in interface BooleanBagtap in interface BooleanIterabletap in interface ImmutableBooleanCollectionImmutableBooleanBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface BooleanBagdefault ImmutableBooleanBag selectDuplicates()
selectDuplicates in interface BooleanBagImmutableBooleanSet selectUnique()
selectUnique in interface BooleanBagImmutableList<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 BooleanBagImmutableList<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)
BooleanIterablecollect in interface BooleanBagcollect in interface BooleanIterablecollect in interface ImmutableBooleanCollectionImmutableBooleanBag newWith(boolean element)
newWith in interface ImmutableBooleanCollectionImmutableBooleanBag newWithout(boolean element)
newWithout in interface ImmutableBooleanCollectionImmutableBooleanBag newWithAll(BooleanIterable elements)
newWithAll in interface ImmutableBooleanCollectionImmutableBooleanBag newWithoutAll(BooleanIterable elements)
newWithoutAll in interface ImmutableBooleanCollectionCopyright © 2004–2022. All rights reserved.