Class SynchronizedIntIntMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedIntIntMap
- All Implemented Interfaces:
Serializable,IntIterable,IntIntMap,IntValuesMap,MutableIntIntMap,MutableIntValuesMap,PrimitiveIterable
A synchronized view of a
MutableIntIntMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableIntIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddToValue(int key, int toBeAdded) booleanallSatisfy(IntPredicate predicate) booleanallSatisfyKeyValue(IntIntPredicate predicate) booleananySatisfy(IntPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableBag<V>collect(IntToObjectFunction<? extends V> function) booleancontains(int value) booleancontainsAll(int... source) booleancontainsAll(IntIterable source) booleancontainsKey(int key) booleancontainsValue(int value) intcount(IntPredicate predicate) intdetectIfNone(IntPredicate predicate, int ifNone) voideach(IntProcedure procedure) booleanvoidforEachKey(IntProcedure procedure) voidforEachKeyValue(IntIntProcedure procedure) voidforEachValue(IntProcedure procedure) intget(int key) intgetAndPut(int key, int putValue, int defaultValue) intgetIfAbsent(int key, int ifAbsent) intgetIfAbsentPut(int key, int value) intgetIfAbsentPut(int key, IntFunction0 function) <P> intgetIfAbsentPutWith(int key, IntFunction<? super P> function, P parameter) intgetIfAbsentPutWithKey(int key, IntToIntFunction function) intgetOrThrow(int key) inthashCode()<T> TinjectInto(T injectedValue, ObjectIntToObjectFunction<? super T, ? extends T> function) This must be manually synchronized by the developer.booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) intmax()intmaxIfEmpty(int defaultValue) doublemedian()intmin()intminIfEmpty(int defaultValue) booleannoneSatisfy(IntPredicate predicate) booleannotEmpty()voidput(int key, int value) voidvoidputPair(IntIntPair keyValuePair) reject(IntIntPredicate predicate) reject(IntPredicate predicate) voidremove(int key) voidremoveKey(int key) intremoveKeyIfAbsent(int key, int value) select(IntIntPredicate predicate) select(IntPredicate predicate) intsize()longsum()int[]toArray()int[]toArray(int[] target) toBag()toList()toSet()int[]toString()intupdateValue(int key, int initialValueIfAbsent, IntToIntFunction function) voidupdateValues(IntIntToIntFunction function) values()withKeyValue(int key, int value) withoutAllKeys(IntIterable keys) withoutKey(int key) Methods inherited from interface org.eclipse.collections.api.map.primitive.IntIntMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.IntIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.map.primitive.IntValuesMap
tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntIntMap
withAllKeyValues
-
Constructor Details
-
SynchronizedIntIntMap
-
SynchronizedIntIntMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableIntValuesMap
-
put
public void put(int key, int value) - Specified by:
putin interfaceMutableIntIntMap
-
putPair
- Specified by:
putPairin interfaceMutableIntIntMap
-
putAll
- Specified by:
putAllin interfaceMutableIntIntMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableIntIntMap
-
removeKey
public void removeKey(int key) - Specified by:
removeKeyin interfaceMutableIntIntMap
-
remove
public void remove(int key) - Specified by:
removein interfaceMutableIntIntMap
-
removeKeyIfAbsent
public int removeKeyIfAbsent(int key, int value) - Specified by:
removeKeyIfAbsentin interfaceMutableIntIntMap
-
getIfAbsentPut
public int getIfAbsentPut(int key, int value) - Specified by:
getIfAbsentPutin interfaceMutableIntIntMap
-
getAndPut
public int getAndPut(int key, int putValue, int defaultValue) - Specified by:
getAndPutin interfaceMutableIntIntMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableIntIntMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableIntIntMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableIntIntMap
-
updateValue
- Specified by:
updateValuein interfaceMutableIntIntMap
-
get
public int get(int key) -
getIfAbsent
public int getIfAbsent(int key, int ifAbsent) - Specified by:
getIfAbsentin interfaceIntIntMap
-
getOrThrow
public int getOrThrow(int key) - Specified by:
getOrThrowin interfaceIntIntMap
-
containsKey
public boolean containsKey(int key) - Specified by:
containsKeyin interfaceIntIntMap
-
containsValue
public boolean containsValue(int value) - Specified by:
containsValuein interfaceIntValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceIntValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceIntIntMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceIntIntMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceIntIntMap- Since:
- 12.0
-
keysView
-
keyValuesView
- Specified by:
keyValuesViewin interfaceIntIntMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceIntIntMap- Specified by:
flipUniqueValuesin interfaceMutableIntIntMap
-
select
- Specified by:
selectin interfaceIntIntMap- Specified by:
selectin interfaceMutableIntIntMap
-
reject
- Specified by:
rejectin interfaceIntIntMap- Specified by:
rejectin interfaceMutableIntIntMap
-
intIterator
This must be manually synchronized by the developer.- Specified by:
intIteratorin interfaceIntIterable- Specified by:
intIteratorin interfaceMutableIntValuesMap
-
each
- Specified by:
eachin interfaceIntIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceIntIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceIntIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceIntIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceIntIterable
-
select
- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceIntValuesMap- Specified by:
selectin interfaceMutableIntValuesMap
-
reject
- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceIntValuesMap- Specified by:
rejectin interfaceMutableIntValuesMap
-
collect
- Specified by:
collectin interfaceIntIterable- Specified by:
collectin interfaceIntValuesMap- Specified by:
collectin interfaceMutableIntValuesMap
-
detectIfNone
- Specified by:
detectIfNonein interfaceIntIterable
-
sum
public long sum()- Specified by:
sumin interfaceIntIterable
-
max
public int max()- Specified by:
maxin interfaceIntIterable
-
maxIfEmpty
public int maxIfEmpty(int defaultValue) - Specified by:
maxIfEmptyin interfaceIntIterable
-
min
public int min()- Specified by:
minin interfaceIntIterable
-
minIfEmpty
public int minIfEmpty(int defaultValue) - Specified by:
minIfEmptyin interfaceIntIterable
-
average
public double average()- Specified by:
averagein interfaceIntIterable
-
median
public double median()- Specified by:
medianin interfaceIntIterable
-
addToValue
public int addToValue(int key, int toBeAdded) - Specified by:
addToValuein interfaceMutableIntIntMap
-
toSortedArray
public int[] toSortedArray()- Specified by:
toSortedArrayin interfaceIntIterable
-
toSortedList
- Specified by:
toSortedListin interfaceIntIterable
-
toArray
public int[] toArray()- Specified by:
toArrayin interfaceIntIterable
-
toArray
public int[] toArray(int[] target) - Specified by:
toArrayin interfaceIntIterable
-
contains
public boolean contains(int value) - Specified by:
containsin interfaceIntIterable
-
containsAll
public boolean containsAll(int... source) - Specified by:
containsAllin interfaceIntIterable
-
containsAll
- Specified by:
containsAllin interfaceIntIterable
-
toList
- Specified by:
toListin interfaceIntIterable
-
toSet
- Specified by:
toSetin interfaceIntIterable
-
toBag
- Specified by:
toBagin interfaceIntIterable
-
asLazy
- Specified by:
asLazyin interfaceIntIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableIntIntMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableIntIntMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableIntIntMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableIntIntMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableIntIntMap
-
toImmutable
- Specified by:
toImmutablein interfaceIntIntMap
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
keySet
-
values
- Specified by:
valuesin interfaceIntValuesMap
-
equals
-
hashCode
public int hashCode() -
toString
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
- Specified by:
injectIntoin interfaceIntIterable
-
chunk
- Specified by:
chunkin interfaceIntIterable
-