@ThreadSafe public final class SynchronizedBooleanBag extends AbstractSynchronizedBooleanCollection implements org.eclipse.collections.api.bag.primitive.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) |
org.eclipse.collections.api.LazyBooleanIterable |
asLazy() |
org.eclipse.collections.api.bag.primitive.MutableBooleanBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableBooleanBag |
asUnmodifiable() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.BooleanToObjectFunction<? extends V> function) |
boolean |
equals(Object otherBag) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.BooleanIntProcedure procedure) |
int |
hashCode() |
int |
occurrencesOf(boolean item) |
org.eclipse.collections.api.bag.primitive.MutableBooleanBag |
reject(org.eclipse.collections.api.block.predicate.primitive.BooleanPredicate predicate) |
boolean |
removeOccurrences(boolean item,
int occurrences) |
org.eclipse.collections.api.bag.primitive.MutableBooleanBag |
select(org.eclipse.collections.api.block.predicate.primitive.BooleanPredicate predicate) |
int |
sizeDistinct() |
org.eclipse.collections.api.bag.primitive.ImmutableBooleanBag |
toImmutable() |
SynchronizedBooleanBag |
with(boolean element) |
SynchronizedBooleanBag |
withAll(org.eclipse.collections.api.BooleanIterable elements) |
SynchronizedBooleanBag |
without(boolean element) |
SynchronizedBooleanBag |
withoutAll(org.eclipse.collections.api.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, retainAllpublic SynchronizedBooleanBag with(boolean element)
with in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagwith in interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollectionwith in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanBag without(boolean element)
without in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollectionwithout in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanBag withAll(org.eclipse.collections.api.BooleanIterable elements)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollectionwithAll in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanBag withoutAll(org.eclipse.collections.api.BooleanIterable elements)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollectionwithoutAll in class AbstractSynchronizedBooleanCollectionpublic void addOccurrences(boolean item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagpublic boolean removeOccurrences(boolean item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagpublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.BooleanBagpublic int occurrencesOf(boolean item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.BooleanBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.BooleanIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.BooleanBagpublic org.eclipse.collections.api.bag.primitive.MutableBooleanBag select(org.eclipse.collections.api.block.predicate.primitive.BooleanPredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.BooleanBagselect in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagselect in interface org.eclipse.collections.api.BooleanIterableselect in interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollectionselect in class AbstractSynchronizedBooleanCollectionpublic org.eclipse.collections.api.bag.primitive.MutableBooleanBag reject(org.eclipse.collections.api.block.predicate.primitive.BooleanPredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.BooleanBagreject in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagreject in interface org.eclipse.collections.api.BooleanIterablereject in interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollectionreject in class AbstractSynchronizedBooleanCollectionpublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.BooleanToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.BooleanBagcollect in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagcollect in interface org.eclipse.collections.api.BooleanIterablecollect in interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollectioncollect in class AbstractSynchronizedBooleanCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public org.eclipse.collections.api.LazyBooleanIterable asLazy()
asLazy in interface org.eclipse.collections.api.BooleanIterableasLazy in class AbstractSynchronizedBooleanCollectionpublic org.eclipse.collections.api.bag.primitive.MutableBooleanBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollectionasUnmodifiable in class AbstractSynchronizedBooleanCollectionpublic org.eclipse.collections.api.bag.primitive.MutableBooleanBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollectionasSynchronized in class AbstractSynchronizedBooleanCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableBooleanBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.BooleanBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.MutableBooleanBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollectiontoImmutable in class AbstractSynchronizedBooleanCollectionCopyright © 2004–2018. All rights reserved.