@ThreadSafe public final class SynchronizedBooleanBag extends AbstractSynchronizedBooleanCollection implements MutableBooleanBag
MutableBooleanBag. It is imperative that the user manually synchronize on the collection when iterating over it using the
 BooleanIterator, as per Collections.synchronizedCollection(Collection).
 This file was automatically generated from template file synchronizedPrimitiveBag.stg.
MutableBooleanBag.asSynchronized(), 
MutableBag.asSynchronized(), 
Serialized Form| Modifier and Type | Method and Description | 
|---|---|
| void | addOccurrences(boolean item,
              int occurrences) | 
| LazyBooleanIterable | asLazy() | 
| MutableBooleanBag | asSynchronized() | 
| MutableBooleanBag | asUnmodifiable() | 
| <V> MutableBag<V> | collect(BooleanToObjectFunction<? extends V> function) | 
| boolean | equals(Object otherBag)Follows the same general contract as  Bag.equals(Object). | 
| void | forEachWithOccurrences(BooleanIntProcedure procedure)For each distinct item, with the number of occurrences, execute the specified procedure. | 
| int | hashCode()Follows the same general contract as  Bag.hashCode(). | 
| int | occurrencesOf(boolean item)The occurrences of a distinct item in the bag. | 
| MutableBooleanBag | reject(BooleanPredicate predicate) | 
| boolean | removeOccurrences(boolean item,
                 int occurrences) | 
| MutableBooleanBag | select(BooleanPredicate predicate) | 
| int | sizeDistinct()The size of the Bag when counting only distinct elements. | 
| ImmutableBooleanBag | toImmutable()Returns an immutable copy of this bag. | 
| SynchronizedBooleanBag | with(boolean element) | 
| SynchronizedBooleanBag | withAll(BooleanIterable elements) | 
| SynchronizedBooleanBag | without(boolean element) | 
| SynchronizedBooleanBag | withoutAll(BooleanIterable elements) | 
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, booleanIterator, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toBag, toList, toSet, toStringadd, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, noneSatisfy, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedBooleanBag with(boolean element)
with in interface MutableBooleanBagwith in interface MutableBooleanCollectionwith in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanBag without(boolean element)
without in interface MutableBooleanBagwithout in interface MutableBooleanCollectionwithout in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanBag withAll(BooleanIterable elements)
withAll in interface MutableBooleanBagwithAll in interface MutableBooleanCollectionwithAll in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanBag withoutAll(BooleanIterable elements)
withoutAll in interface MutableBooleanBagwithoutAll in interface MutableBooleanCollectionwithoutAll in class AbstractSynchronizedBooleanCollectionpublic void addOccurrences(boolean item,
                           int occurrences)
addOccurrences in interface MutableBooleanBagpublic boolean removeOccurrences(boolean item,
                                 int occurrences)
removeOccurrences in interface MutableBooleanBagpublic int sizeDistinct()
BooleanBagsizeDistinct in interface BooleanBagpublic int occurrencesOf(boolean item)
BooleanBagoccurrencesOf in interface BooleanBagpublic void forEachWithOccurrences(BooleanIntProcedure procedure)
BooleanBagforEachWithOccurrences in interface BooleanBagpublic MutableBooleanBag select(BooleanPredicate predicate)
select in interface BooleanBagselect in interface MutableBooleanBagselect in interface BooleanIterableselect in interface MutableBooleanCollectionselect in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanBag reject(BooleanPredicate predicate)
reject in interface BooleanBagreject in interface MutableBooleanBagreject in interface BooleanIterablereject in interface MutableBooleanCollectionreject in class AbstractSynchronizedBooleanCollectionpublic <V> MutableBag<V> collect(BooleanToObjectFunction<? extends V> function)
collect in interface BooleanBagcollect in interface MutableBooleanBagcollect in interface BooleanIterablecollect in interface MutableBooleanCollectioncollect in class AbstractSynchronizedBooleanCollectionpublic boolean equals(Object otherBag)
BooleanBagBag.equals(Object).equals in interface BooleanBagequals in class Objectpublic int hashCode()
BooleanBagBag.hashCode().hashCode in interface BooleanBaghashCode in class Objectpublic LazyBooleanIterable asLazy()
asLazy in interface BooleanIterableasLazy in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanBag asUnmodifiable()
asUnmodifiable in interface MutableBooleanBagasUnmodifiable in interface MutableBooleanCollectionasUnmodifiable in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanBag asSynchronized()
asSynchronized in interface MutableBooleanBagasSynchronized in interface MutableBooleanCollectionasSynchronized in class AbstractSynchronizedBooleanCollectionpublic ImmutableBooleanBag toImmutable()
MutableBooleanBagtoImmutable in interface BooleanBagtoImmutable in interface MutableBooleanBagtoImmutable in interface MutableBooleanCollectiontoImmutable in class AbstractSynchronizedBooleanCollectionCopyright © 2004–2016. All rights reserved.