public interface MutableBooleanBag extends MutableBooleanCollection, BooleanBag
Modifier and Type | Method and 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) |
MutableBooleanBag |
reject(BooleanPredicate predicate) |
boolean |
removeOccurrences(boolean item,
int occurrences) |
MutableBooleanBag |
select(BooleanPredicate predicate) |
MutableBooleanBag |
selectByOccurrences(IntPredicate predicate)
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
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) |
add, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, retainAll, retainAll
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct
allSatisfy, anySatisfy, asLazy, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, noneSatisfy, toArray, toBag, toList, toSet
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
void addOccurrences(boolean item, int occurrences)
boolean removeOccurrences(boolean item, int occurrences)
MutableBooleanBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface BooleanBag
MutableList<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
MutableList<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
MutableBooleanBag select(BooleanPredicate predicate)
select
in interface BooleanBag
select
in interface BooleanIterable
select
in interface MutableBooleanCollection
MutableBooleanBag reject(BooleanPredicate predicate)
reject
in interface BooleanBag
reject
in interface BooleanIterable
reject
in interface MutableBooleanCollection
<V> MutableBag<V> collect(BooleanToObjectFunction<? extends V> function)
collect
in interface BooleanBag
collect
in interface BooleanIterable
collect
in interface MutableBooleanCollection
MutableBooleanBag with(boolean element)
with
in interface MutableBooleanCollection
MutableBooleanBag without(boolean element)
without
in interface MutableBooleanCollection
MutableBooleanBag withAll(BooleanIterable elements)
withAll
in interface MutableBooleanCollection
MutableBooleanBag withoutAll(BooleanIterable elements)
withoutAll
in interface MutableBooleanCollection
MutableBooleanBag asUnmodifiable()
asUnmodifiable
in interface MutableBooleanCollection
MutableBooleanBag asSynchronized()
asSynchronized
in interface MutableBooleanCollection
ImmutableBooleanBag toImmutable()
toImmutable
in interface BooleanBag
toImmutable
in interface MutableBooleanCollection
Copyright © 2004–2016. All rights reserved.