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()
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SynchronizedBooleanBag | back to summary |
|---|---|
| public SynchronizedBooleanBag(MutableBooleanBag bag) | |
| SynchronizedBooleanBag | back to summary |
|---|---|
| public SynchronizedBooleanBag(MutableBooleanBag bag, Object newLock) | |
| addOccurrences | back to summary |
|---|---|
| public void addOccurrences(boolean item, int occurrences) Implements org.
| |
| asLazy | back to summary |
|---|---|
| public LazyBooleanIterable asLazy() Implements org. Doc from org. Returns a LazyBooleanIterable adapter wrapping the source BooleanIterable.
| |
| asSynchronized | back to summary |
|---|---|
| public MutableBooleanBag asSynchronized() Implements org.
| |
| asUnmodifiable | back to summary |
|---|---|
| public MutableBooleanBag asUnmodifiable() Implements org.
| |
| bottomOccurrences | back to summary |
|---|---|
| public MutableList Implements org. Doc from org. Returns the
| |
| collect | back to summary |
|---|---|
| public <V> MutableBag Implements org. Doc from org. Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object otherBag) Overrides java. Implements org. Doc from org. Follows the same general contract as
| |
| forEachWithOccurrences | back to summary |
|---|---|
| public void forEachWithOccurrences(BooleanIntProcedure procedure) Implements org. Doc from org. For each distinct item, with the number of occurrences, execute the specified procedure.
| |
| getMutableBooleanBag | back to summary |
|---|---|
| private MutableBooleanBag getMutableBooleanBag() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements org. Doc from org. Follows the same general contract as
| |
| newEmpty | back to summary |
|---|---|
| public MutableBooleanBag newEmpty() Overrides default org. Doc from org. Creates a new empty mutable version of the same Bag type.
| |
| occurrencesOf | back to summary |
|---|---|
| public int occurrencesOf(boolean item) Implements org. Doc from org. The occurrences of a distinct item in the bag.
| |
| reject | back to summary |
|---|---|
| public MutableBooleanBag reject(BooleanPredicate predicate) Implements org. Doc from org. Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.
| |
| removeOccurrences | back to summary |
|---|---|
| public boolean removeOccurrences(boolean item, int occurrences) Implements org.
| |
| select | back to summary |
|---|---|
| public MutableBooleanBag select(BooleanPredicate predicate) Implements org. Doc from org. Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.
| |
| selectByOccurrences | back to summary |
|---|---|
| public MutableBooleanBag selectByOccurrences(IntPredicate predicate) Implements org. Doc from org. Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
| |
| selectUnique | back to summary |
|---|---|
| public MutableBooleanSet selectUnique() Implements org. Doc from org. Returns all elements of the bag that have exactly one occurrence.
| |
| sizeDistinct | back to summary |
|---|---|
| public int sizeDistinct() Implements org. Doc from org. The size of the Bag when counting only distinct elements.
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableBooleanBag toImmutable() Implements org. Doc from org. Returns an immutable copy of this bag.
| |
| topOccurrences | back to summary |
|---|---|
| public MutableList Implements org. Doc from org. Returns the
| |
| with | back to summary |
|---|---|
| public SynchronizedBooleanBag with(boolean element) Overrides org. Implements org.
| |
| withAll | back to summary |
|---|---|
| public SynchronizedBooleanBag withAll(BooleanIterable elements) Implements org.
| |
| without | back to summary |
|---|---|
| public SynchronizedBooleanBag without(boolean element) Implements org.
| |
| withoutAll | back to summary |
|---|---|
| public SynchronizedBooleanBag withoutAll(BooleanIterable elements) Implements org.
| |