Class SynchronizedObjectShortMap<K>
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedObjectShortMap<K>
- All Implemented Interfaces:
Serializable,MutableObjectShortMap<K>,ObjectShortMap<K>,PrimitiveIterable,ShortIterable
public class SynchronizedObjectShortMap<K>
extends Object
implements MutableObjectShortMap<K>, Serializable
A synchronized view of a
MutableObjectShortMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
ShortIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedObjectPrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortaddToValue(K key, short toBeAdded) booleanallSatisfy(ShortPredicate predicate) booleanallSatisfyKeyValue(ObjectShortPredicate<K> predicate) booleananySatisfy(ShortPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V1> MutableCollection<V1>collect(ShortToObjectFunction<? extends V1> function) booleancontains(short value) booleancontainsAll(short... source) booleancontainsAll(ShortIterable source) booleancontainsKey(Object key) booleancontainsValue(short value) intcount(ShortPredicate predicate) shortdetectIfNone(ShortPredicate predicate, short ifNone) voideach(ShortProcedure procedure) booleanvoidforEachKey(Procedure<? super K> procedure) voidforEachKeyValue(ObjectShortProcedure<? super K> procedure) voidforEachValue(ShortProcedure procedure) shortshortshortgetIfAbsent(Object key, short ifAbsent) shortgetIfAbsentPut(K key, short value) shortgetIfAbsentPut(K key, ShortFunction0 function) <P> shortgetIfAbsentPutWith(K key, ShortFunction<? super P> function, P parameter) shortgetIfAbsentPutWithKey(K key, ShortFunction<? super K> function) shortgetOrThrow(Object key) inthashCode()<T> TinjectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) shortmax()shortmaxIfEmpty(short defaultValue) doublemedian()shortmin()shortminIfEmpty(short defaultValue) booleannoneSatisfy(ShortPredicate predicate) booleannotEmpty()voidvoidputAll(ObjectShortMap<? extends K> map) voidputPair(ObjectShortPair<K> keyValuePair) reject(ObjectShortPredicate<? super K> predicate) reject(ShortPredicate predicate) voidvoidshortremoveKeyIfAbsent(K key, short value) select(ObjectShortPredicate<? super K> predicate) select(ShortPredicate predicate) Must be called in a synchronized block.intsize()longsum()short[]toArray()short[]toArray(short[] target) toBag()toList()toSet()short[]toString()shortupdateValue(K key, short initialValueIfAbsent, ShortToShortFunction function) voidupdateValues(ObjectShortToShortFunction<? super K> function) values()withKeyValue(K key, short value) withoutAllKeys(Iterable<? extends K> keys) withoutKey(K key) Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableObjectShortMap
tap, withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ObjectShortMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.ShortIterable
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, toSortedListBy
-
Constructor Details
-
SynchronizedObjectShortMap
-
SynchronizedObjectShortMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableObjectShortMap<K>
-
put
- Specified by:
putin interfaceMutableObjectShortMap<K>
-
putPair
- Specified by:
putPairin interfaceMutableObjectShortMap<K>
-
putAll
- Specified by:
putAllin interfaceMutableObjectShortMap<K>
-
updateValues
- Specified by:
updateValuesin interfaceMutableObjectShortMap<K>
-
removeKey
- Specified by:
removeKeyin interfaceMutableObjectShortMap<K>
-
remove
- Specified by:
removein interfaceMutableObjectShortMap<K>
-
removeKeyIfAbsent
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectShortMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectShortMap<K>
-
getAndPut
- Specified by:
getAndPutin interfaceMutableObjectShortMap<K>
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableObjectShortMap<K>
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectShortMap<K>
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectShortMap<K>
-
updateValue
- Specified by:
updateValuein interfaceMutableObjectShortMap<K>
-
get
- Specified by:
getin interfaceObjectShortMap<K>
-
getOrThrow
- Specified by:
getOrThrowin interfaceObjectShortMap<K>
-
getIfAbsent
- Specified by:
getIfAbsentin interfaceObjectShortMap<K>
-
containsKey
- Specified by:
containsKeyin interfaceObjectShortMap<K>
-
containsValue
public boolean containsValue(short value) - Specified by:
containsValuein interfaceObjectShortMap<K>
-
forEachValue
- Specified by:
forEachValuein interfaceObjectShortMap<K>
-
forEachKey
- Specified by:
forEachKeyin interfaceObjectShortMap<K>
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceObjectShortMap<K>
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceObjectShortMap<K>- Since:
- 12.0
-
select
- Specified by:
selectin interfaceMutableObjectShortMap<K>- Specified by:
selectin interfaceObjectShortMap<K>
-
reject
- Specified by:
rejectin interfaceMutableObjectShortMap<K>- Specified by:
rejectin interfaceObjectShortMap<K>
-
shortIterator
Must be called in a synchronized block.- Specified by:
shortIteratorin interfaceMutableObjectShortMap<K>- Specified by:
shortIteratorin interfaceShortIterable
-
each
- Specified by:
eachin interfaceShortIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceShortIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceShortIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceShortIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceShortIterable
-
select
- Specified by:
selectin interfaceMutableObjectShortMap<K>- Specified by:
selectin interfaceShortIterable
-
reject
- Specified by:
rejectin interfaceMutableObjectShortMap<K>- Specified by:
rejectin interfaceShortIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceShortIterable
-
collect
- Specified by:
collectin interfaceMutableObjectShortMap<K>- Specified by:
collectin interfaceShortIterable
-
sum
public long sum()- Specified by:
sumin interfaceShortIterable
-
addToValue
- Specified by:
addToValuein interfaceMutableObjectShortMap<K>
-
max
public short max()- Specified by:
maxin interfaceShortIterable
-
maxIfEmpty
public short maxIfEmpty(short defaultValue) - Specified by:
maxIfEmptyin interfaceShortIterable
-
min
public short min()- Specified by:
minin interfaceShortIterable
-
minIfEmpty
public short minIfEmpty(short defaultValue) - Specified by:
minIfEmptyin interfaceShortIterable
-
average
public double average()- Specified by:
averagein interfaceShortIterable
-
median
public double median()- Specified by:
medianin interfaceShortIterable
-
toSortedArray
public short[] toSortedArray()- Specified by:
toSortedArrayin interfaceShortIterable
-
toSortedList
- Specified by:
toSortedListin interfaceShortIterable
-
toArray
public short[] toArray()- Specified by:
toArrayin interfaceShortIterable
-
toArray
public short[] toArray(short[] target) - Specified by:
toArrayin interfaceShortIterable
-
contains
public boolean contains(short value) - Specified by:
containsin interfaceShortIterable
-
containsAll
public boolean containsAll(short... source) - Specified by:
containsAllin interfaceShortIterable
-
containsAll
- Specified by:
containsAllin interfaceShortIterable
-
toList
- Specified by:
toListin interfaceShortIterable
-
toSet
- Specified by:
toSetin interfaceShortIterable
-
toBag
- Specified by:
toBagin interfaceShortIterable
-
asLazy
- Specified by:
asLazyin interfaceShortIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableObjectShortMap<K>
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableObjectShortMap<K>
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableObjectShortMap<K>
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableObjectShortMap<K>
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableObjectShortMap<K>
-
toImmutable
- Specified by:
toImmutablein interfaceObjectShortMap<K>
-
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 interfaceObjectShortMap<K>
-
values
- Specified by:
valuesin interfaceObjectShortMap<K>
-
keysView
- Specified by:
keysViewin interfaceObjectShortMap<K>
-
keyValuesView
- Specified by:
keyValuesViewin interfaceObjectShortMap<K>
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableObjectShortMap<K>- Specified by:
flipUniqueValuesin interfaceObjectShortMap<K>
-
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfaceObjectShortMap<K>- 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
public <T> T injectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceShortIterable
-
chunk
- Specified by:
chunkin interfaceShortIterable
-