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