BooleanBag, BooleanIterable, MutableBooleanCollection, PrimitiveIterableBooleanHashBag, SynchronizedBooleanBag, UnmodifiableBooleanBagpublic interface MutableBooleanBag extends MutableBooleanCollection, BooleanBag
| Modifier and Type | Method | Description |
|---|---|---|
void |
addOccurrences(boolean item,
int occurrences) |
|
MutableBooleanBag |
asSynchronized() |
|
MutableBooleanBag |
asUnmodifiable() |
|
MutableList<BooleanIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> MutableBag<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.
|
default MutableBooleanBag |
newEmpty() |
Creates a new empty mutable version of the same Bag type.
|
MutableBooleanBag |
reject(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return false for the specified predicate.
|
boolean |
removeOccurrences(boolean item,
int occurrences) |
|
MutableBooleanBag |
select(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return true for the specified predicate.
|
MutableBooleanBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default MutableBooleanBag |
selectDuplicates() |
Returns all elements of the bag that have more than one occurrence.
|
MutableBooleanSet |
selectUnique() |
Returns all elements of the bag that have exactly one occurrence.
|
default MutableBooleanBag |
tap(BooleanProcedure procedure) |
|
ImmutableBooleanBag |
toImmutable() |
Returns an immutable copy of this bag.
|
MutableList<BooleanIntPair> |
topOccurrences(int count) |
Returns the
count most frequently occurring items. |
MutableBooleanBag |
with(boolean element) |
|
MutableBooleanBag |
withAll(BooleanIterable elements) |
|
MutableBooleanBag |
without(boolean element) |
|
MutableBooleanBag |
withoutAll(BooleanIterable elements) |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toStringOfItemToCountallSatisfy, anySatisfy, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toBag, toList, toSetadd, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid addOccurrences(boolean item,
int occurrences)
boolean removeOccurrences(boolean item,
int occurrences)
default MutableBooleanBag tap(BooleanProcedure procedure)
tap in interface BooleanBagtap in interface BooleanIterabletap in interface MutableBooleanCollectionMutableBooleanBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface BooleanBagdefault MutableBooleanBag selectDuplicates()
selectDuplicates in interface BooleanBagMutableBooleanSet selectUnique()
selectUnique in interface BooleanBagMutableList<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 BooleanBagMutableList<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 BooleanBagMutableBooleanBag select(BooleanPredicate predicate)
BooleanIterableselect in interface BooleanBagselect in interface BooleanIterableselect in interface MutableBooleanCollectionMutableBooleanBag reject(BooleanPredicate predicate)
BooleanIterablereject in interface BooleanBagreject in interface BooleanIterablereject in interface MutableBooleanCollection<V> MutableBag<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterablecollect in interface BooleanBagcollect in interface BooleanIterablecollect in interface MutableBooleanCollectionMutableBooleanBag with(boolean element)
with in interface MutableBooleanCollectionMutableBooleanBag without(boolean element)
without in interface MutableBooleanCollectionMutableBooleanBag withAll(BooleanIterable elements)
withAll in interface MutableBooleanCollectionMutableBooleanBag withoutAll(BooleanIterable elements)
withoutAll in interface MutableBooleanCollectionMutableBooleanBag asUnmodifiable()
asUnmodifiable in interface MutableBooleanCollectionMutableBooleanBag asSynchronized()
asSynchronized in interface MutableBooleanCollectionImmutableBooleanBag toImmutable()
toImmutable in interface BooleanBagtoImmutable in interface MutableBooleanCollectiondefault MutableBooleanBag newEmpty()
newEmpty in interface MutableBooleanCollectionCopyright © 2004–2020. All rights reserved.