Class SynchronizedCharIntMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedCharIntMap
- All Implemented Interfaces:
Serializable,IntIterable,CharIntMap,IntValuesMap,MutableCharIntMap,MutableIntValuesMap,PrimitiveIterable
A synchronized view of a
MutableCharIntMap. 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(char key, int toBeAdded) booleanallSatisfy(IntPredicate predicate) booleanallSatisfyKeyValue(CharIntPredicate 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(char key) booleancontainsValue(int value) intcount(IntPredicate predicate) intdetectIfNone(IntPredicate predicate, int ifNone) voideach(IntProcedure procedure) booleanvoidforEachKey(CharProcedure procedure) voidforEachKeyValue(CharIntProcedure procedure) voidforEachValue(IntProcedure procedure) intget(char key) intgetAndPut(char key, int putValue, int defaultValue) intgetIfAbsent(char key, int ifAbsent) intgetIfAbsentPut(char key, int value) intgetIfAbsentPut(char key, IntFunction0 function) <P> intgetIfAbsentPutWith(char key, IntFunction<? super P> function, P parameter) intgetIfAbsentPutWithKey(char key, CharToIntFunction function) intgetOrThrow(char 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(char key, int value) voidputAll(CharIntMap map) voidputPair(CharIntPair keyValuePair) reject(CharIntPredicate predicate) reject(IntPredicate predicate) voidremove(char key) voidremoveKey(char key) intremoveKeyIfAbsent(char key, int value) select(CharIntPredicate predicate) select(IntPredicate predicate) intsize()longsum()int[]toArray()int[]toArray(int[] target) toBag()toList()toSet()int[]toString()intupdateValue(char key, int initialValueIfAbsent, IntToIntFunction function) voidupdateValues(CharIntToIntFunction function) values()withKeyValue(char key, int value) withoutAllKeys(CharIterable keys) withoutKey(char key) Methods inherited from interface org.eclipse.collections.api.map.primitive.CharIntMap
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.MutableCharIntMap
withAllKeyValues
-
Constructor Details
-
SynchronizedCharIntMap
-
SynchronizedCharIntMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableIntValuesMap
-
put
public void put(char key, int value) - Specified by:
putin interfaceMutableCharIntMap
-
putPair
- Specified by:
putPairin interfaceMutableCharIntMap
-
putAll
- Specified by:
putAllin interfaceMutableCharIntMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableCharIntMap
-
removeKey
public void removeKey(char key) - Specified by:
removeKeyin interfaceMutableCharIntMap
-
remove
public void remove(char key) - Specified by:
removein interfaceMutableCharIntMap
-
removeKeyIfAbsent
public int removeKeyIfAbsent(char key, int value) - Specified by:
removeKeyIfAbsentin interfaceMutableCharIntMap
-
getIfAbsentPut
public int getIfAbsentPut(char key, int value) - Specified by:
getIfAbsentPutin interfaceMutableCharIntMap
-
getAndPut
public int getAndPut(char key, int putValue, int defaultValue) - Specified by:
getAndPutin interfaceMutableCharIntMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableCharIntMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharIntMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableCharIntMap
-
updateValue
- Specified by:
updateValuein interfaceMutableCharIntMap
-
get
public int get(char key) - Specified by:
getin interfaceCharIntMap
-
getIfAbsent
public int getIfAbsent(char key, int ifAbsent) - Specified by:
getIfAbsentin interfaceCharIntMap
-
getOrThrow
public int getOrThrow(char key) - Specified by:
getOrThrowin interfaceCharIntMap
-
containsKey
public boolean containsKey(char key) - Specified by:
containsKeyin interfaceCharIntMap
-
containsValue
public boolean containsValue(int value) - Specified by:
containsValuein interfaceIntValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceIntValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceCharIntMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceCharIntMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceCharIntMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceCharIntMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceCharIntMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceCharIntMap- Specified by:
flipUniqueValuesin interfaceMutableCharIntMap
-
select
- Specified by:
selectin interfaceCharIntMap- Specified by:
selectin interfaceMutableCharIntMap
-
reject
- Specified by:
rejectin interfaceCharIntMap- Specified by:
rejectin interfaceMutableCharIntMap
-
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(char key, int toBeAdded) - Specified by:
addToValuein interfaceMutableCharIntMap
-
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 interfaceMutableCharIntMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableCharIntMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableCharIntMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharIntMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharIntMap
-
toImmutable
- Specified by:
toImmutablein interfaceCharIntMap
-
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
- Specified by:
keySetin interfaceCharIntMap
-
values
- Specified by:
valuesin interfaceIntValuesMap
-
equals
- Specified by:
equalsin interfaceCharIntMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCharIntMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceCharIntMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
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
-