Class SynchronizedBooleanBag
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection
org.eclipse.collections.impl.bag.mutable.primitive.SynchronizedBooleanBag
- All Implemented Interfaces:
Serializable,BooleanBag,MutableBooleanBag,BooleanIterable,MutableBooleanCollection,PrimitiveIterable
public class SynchronizedBooleanBag
extends AbstractSynchronizedBooleanCollection
implements MutableBooleanBag
A synchronized view of a
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.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOccurrences(boolean item, int occurrences) asLazy()bottomOccurrences(int count) <V> MutableBag<V>collect(BooleanToObjectFunction<? extends V> function) booleanvoidforEachWithOccurrences(BooleanIntProcedure procedure) inthashCode()newEmpty()intoccurrencesOf(boolean item) reject(BooleanPredicate predicate) booleanremoveOccurrences(boolean item, int occurrences) select(BooleanPredicate predicate) selectByOccurrences(IntPredicate predicate) inttopOccurrences(int count) with(boolean element) withAll(BooleanIterable elements) without(boolean element) withoutAll(BooleanIterable elements) Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedBooleanCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, booleanIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, toArray, toArray, toBag, toList, toSet, toStringMethods inherited from interface org.eclipse.collections.api.bag.primitive.BooleanBag
toStringOfItemToCountMethods inherited from interface org.eclipse.collections.api.BooleanIterable
allSatisfy, anySatisfy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSetMethods inherited from interface org.eclipse.collections.api.bag.primitive.MutableBooleanBag
selectDuplicates, tapMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollection
add, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
SynchronizedBooleanBag
-
SynchronizedBooleanBag
-
-
Method Details
-
with
- Specified by:
within interfaceMutableBooleanBag- Specified by:
within interfaceMutableBooleanCollection- Overrides:
within classAbstractSynchronizedBooleanCollection
-
without
- Specified by:
withoutin interfaceMutableBooleanBag- Specified by:
withoutin interfaceMutableBooleanCollection- Overrides:
withoutin classAbstractSynchronizedBooleanCollection
-
withAll
- Specified by:
withAllin interfaceMutableBooleanBag- Specified by:
withAllin interfaceMutableBooleanCollection- Overrides:
withAllin classAbstractSynchronizedBooleanCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableBooleanBag- Specified by:
withoutAllin interfaceMutableBooleanCollection- Overrides:
withoutAllin classAbstractSynchronizedBooleanCollection
-
addOccurrences
public void addOccurrences(boolean item, int occurrences) - Specified by:
addOccurrencesin interfaceMutableBooleanBag
-
removeOccurrences
public boolean removeOccurrences(boolean item, int occurrences) - Specified by:
removeOccurrencesin interfaceMutableBooleanBag
-
sizeDistinct
public int sizeDistinct()- Specified by:
sizeDistinctin interfaceBooleanBag
-
occurrencesOf
public int occurrencesOf(boolean item) - Specified by:
occurrencesOfin interfaceBooleanBag
-
forEachWithOccurrences
- Specified by:
forEachWithOccurrencesin interfaceBooleanBag
-
select
- Specified by:
selectin interfaceBooleanBag- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceMutableBooleanBag- Specified by:
selectin interfaceMutableBooleanCollection- Overrides:
selectin classAbstractSynchronizedBooleanCollection
-
selectByOccurrences
- Specified by:
selectByOccurrencesin interfaceBooleanBag- Specified by:
selectByOccurrencesin interfaceMutableBooleanBag
-
selectUnique
- Specified by:
selectUniquein interfaceBooleanBag- Specified by:
selectUniquein interfaceMutableBooleanBag
-
topOccurrences
- Specified by:
topOccurrencesin interfaceBooleanBag- Specified by:
topOccurrencesin interfaceMutableBooleanBag
-
bottomOccurrences
- Specified by:
bottomOccurrencesin interfaceBooleanBag- Specified by:
bottomOccurrencesin interfaceMutableBooleanBag
-
reject
- Specified by:
rejectin interfaceBooleanBag- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceMutableBooleanBag- Specified by:
rejectin interfaceMutableBooleanCollection- Overrides:
rejectin classAbstractSynchronizedBooleanCollection
-
collect
- Specified by:
collectin interfaceBooleanBag- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceMutableBooleanBag- Specified by:
collectin interfaceMutableBooleanCollection- Overrides:
collectin classAbstractSynchronizedBooleanCollection
-
equals
- Specified by:
equalsin interfaceBooleanBag- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceBooleanBag- Overrides:
hashCodein classObject
-
asLazy
- Specified by:
asLazyin interfaceBooleanIterable- Overrides:
asLazyin classAbstractSynchronizedBooleanCollection
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableBooleanBag- Specified by:
asUnmodifiablein interfaceMutableBooleanCollection- Overrides:
asUnmodifiablein classAbstractSynchronizedBooleanCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableBooleanBag- Specified by:
asSynchronizedin interfaceMutableBooleanCollection- Overrides:
asSynchronizedin classAbstractSynchronizedBooleanCollection
-
toImmutable
- Specified by:
toImmutablein interfaceBooleanBag- Specified by:
toImmutablein interfaceMutableBooleanBag- Specified by:
toImmutablein interfaceMutableBooleanCollection- Overrides:
toImmutablein classAbstractSynchronizedBooleanCollection
-
newEmpty
- Specified by:
newEmptyin interfaceMutableBooleanBag- Specified by:
newEmptyin interfaceMutableBooleanCollection- Since:
- 9.2.
-