BooleanBag
, BooleanIterable
, MutableBooleanCollection
, PrimitiveIterable
BooleanHashBag
, SynchronizedBooleanBag
, UnmodifiableBooleanBag
public 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.
|
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.
|
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
allSatisfy, anySatisfy, asLazy, 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
add, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, retainAll, retainAll
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)
BooleanIterable
select
in interface BooleanBag
select
in interface BooleanIterable
select
in interface MutableBooleanCollection
MutableBooleanBag reject(BooleanPredicate predicate)
BooleanIterable
reject
in interface BooleanBag
reject
in interface BooleanIterable
reject
in interface MutableBooleanCollection
<V> MutableBag<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterable
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–2017. All rights reserved.