Class SynchronizedIntBag
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedIntCollection
org.eclipse.collections.impl.bag.mutable.primitive.SynchronizedIntBag
- All Implemented Interfaces:
Serializable,IntBag,MutableIntBag,MutableIntCollection,IntIterable,PrimitiveIterable
A synchronized view of a
MutableIntBag. It is imperative that the user manually synchronize on the collection when iterating over it using the
IntIterator, 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(int item, int occurrences) asLazy()bottomOccurrences(int count) <V> MutableBag<V>collect(IntToObjectFunction<? extends V> function) booleanvoidforEachWithOccurrences(IntIntProcedure procedure) inthashCode()newEmpty()intoccurrencesOf(int item) reject(IntPredicate predicate) booleanremoveOccurrences(int item, int occurrences) select(IntPredicate predicate) selectByOccurrences(IntPredicate predicate) inttopOccurrences(int count) with(int element) withAll(IntIterable elements) without(int element) withoutAll(IntIterable elements) Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedIntCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface org.eclipse.collections.api.bag.primitive.IntBag
toStringOfItemToCountMethods inherited from interface org.eclipse.collections.api.IntIterable
allSatisfy, anySatisfy, average, averageIfEmpty, 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, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.bag.primitive.MutableIntBag
selectDuplicates, tapMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableIntCollection
add, addAll, addAll, clear, intIterator, 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
-
SynchronizedIntBag
-
SynchronizedIntBag
-
-
Method Details
-
with
- Specified by:
within interfaceMutableIntBag- Specified by:
within interfaceMutableIntCollection- Overrides:
within classAbstractSynchronizedIntCollection
-
without
- Specified by:
withoutin interfaceMutableIntBag- Specified by:
withoutin interfaceMutableIntCollection- Overrides:
withoutin classAbstractSynchronizedIntCollection
-
withAll
- Specified by:
withAllin interfaceMutableIntBag- Specified by:
withAllin interfaceMutableIntCollection- Overrides:
withAllin classAbstractSynchronizedIntCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableIntBag- Specified by:
withoutAllin interfaceMutableIntCollection- Overrides:
withoutAllin classAbstractSynchronizedIntCollection
-
addOccurrences
public void addOccurrences(int item, int occurrences) - Specified by:
addOccurrencesin interfaceMutableIntBag
-
removeOccurrences
public boolean removeOccurrences(int item, int occurrences) - Specified by:
removeOccurrencesin interfaceMutableIntBag
-
sizeDistinct
public int sizeDistinct()- Specified by:
sizeDistinctin interfaceIntBag
-
occurrencesOf
public int occurrencesOf(int item) - Specified by:
occurrencesOfin interfaceIntBag
-
forEachWithOccurrences
- Specified by:
forEachWithOccurrencesin interfaceIntBag
-
select
- Specified by:
selectin interfaceIntBag- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceMutableIntBag- Specified by:
selectin interfaceMutableIntCollection- Overrides:
selectin classAbstractSynchronizedIntCollection
-
selectByOccurrences
- Specified by:
selectByOccurrencesin interfaceIntBag- Specified by:
selectByOccurrencesin interfaceMutableIntBag
-
selectUnique
- Specified by:
selectUniquein interfaceIntBag- Specified by:
selectUniquein interfaceMutableIntBag
-
topOccurrences
- Specified by:
topOccurrencesin interfaceIntBag- Specified by:
topOccurrencesin interfaceMutableIntBag
-
bottomOccurrences
- Specified by:
bottomOccurrencesin interfaceIntBag- Specified by:
bottomOccurrencesin interfaceMutableIntBag
-
reject
- Specified by:
rejectin interfaceIntBag- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceMutableIntBag- Specified by:
rejectin interfaceMutableIntCollection- Overrides:
rejectin classAbstractSynchronizedIntCollection
-
collect
- Specified by:
collectin interfaceIntBag- Specified by:
collectin interfaceIntIterable- Specified by:
collectin interfaceMutableIntBag- Specified by:
collectin interfaceMutableIntCollection- Overrides:
collectin classAbstractSynchronizedIntCollection
-
equals
-
hashCode
public int hashCode() -
asLazy
- Specified by:
asLazyin interfaceIntIterable- Overrides:
asLazyin classAbstractSynchronizedIntCollection
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableIntBag- Specified by:
asUnmodifiablein interfaceMutableIntCollection- Overrides:
asUnmodifiablein classAbstractSynchronizedIntCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableIntBag- Specified by:
asSynchronizedin interfaceMutableIntCollection- Overrides:
asSynchronizedin classAbstractSynchronizedIntCollection
-
toImmutable
- Specified by:
toImmutablein interfaceIntBag- Specified by:
toImmutablein interfaceMutableIntBag- Specified by:
toImmutablein interfaceMutableIntCollection- Overrides:
toImmutablein classAbstractSynchronizedIntCollection
-
newEmpty
- Specified by:
newEmptyin interfaceMutableIntBag- Specified by:
newEmptyin interfaceMutableIntCollection- Since:
- 9.2.
-