Class SynchronizedShortLongMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedShortLongMap
- All Implemented Interfaces:
Serializable,LongIterable,LongValuesMap,MutableLongValuesMap,MutableShortLongMap,ShortLongMap,PrimitiveIterable
A synchronized view of a
MutableShortLongMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableLongIterator 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 TypeMethodDescriptionlongaddToValue(short key, long toBeAdded) booleanallSatisfy(LongPredicate predicate) booleanallSatisfyKeyValue(ShortLongPredicate predicate) booleananySatisfy(LongPredicate 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(LongToObjectFunction<? extends V> function) booleancontains(long value) booleancontainsAll(long... source) booleancontainsAll(LongIterable source) booleancontainsKey(short key) booleancontainsValue(long value) intcount(LongPredicate predicate) longdetectIfNone(LongPredicate predicate, long ifNone) voideach(LongProcedure procedure) booleanvoidforEachKey(ShortProcedure procedure) voidforEachKeyValue(ShortLongProcedure procedure) voidforEachValue(LongProcedure procedure) longget(short key) longgetAndPut(short key, long putValue, long defaultValue) longgetIfAbsent(short key, long ifAbsent) longgetIfAbsentPut(short key, long value) longgetIfAbsentPut(short key, LongFunction0 function) <P> longgetIfAbsentPutWith(short key, LongFunction<? super P> function, P parameter) longgetIfAbsentPutWithKey(short key, ShortToLongFunction function) longgetOrThrow(short key) inthashCode()<T> TinjectInto(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()This must be manually synchronized by the developer.makeString(String separator) makeString(String start, String separator, String end) longmax()longmaxIfEmpty(long defaultValue) doublemedian()longmin()longminIfEmpty(long defaultValue) booleannoneSatisfy(LongPredicate predicate) booleannotEmpty()voidput(short key, long value) voidputAll(ShortLongMap map) voidputPair(ShortLongPair keyValuePair) reject(LongPredicate predicate) reject(ShortLongPredicate predicate) voidremove(short key) voidremoveKey(short key) longremoveKeyIfAbsent(short key, long value) select(LongPredicate predicate) select(ShortLongPredicate predicate) intsize()longsum()long[]toArray()long[]toArray(long[] target) toBag()toList()toSet()long[]toString()longupdateValue(short key, long initialValueIfAbsent, LongToLongFunction function) voidupdateValues(ShortLongToLongFunction function) values()withKeyValue(short key, long value) withoutAllKeys(ShortIterable keys) withoutKey(short key) Methods inherited from interface org.eclipse.collections.api.LongIterable
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.LongValuesMap
tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortLongMap
withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortLongMap
injectIntoKeyValue
-
Constructor Details
-
SynchronizedShortLongMap
-
SynchronizedShortLongMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(short key, long value) - Specified by:
putin interfaceMutableShortLongMap
-
putPair
- Specified by:
putPairin interfaceMutableShortLongMap
-
putAll
- Specified by:
putAllin interfaceMutableShortLongMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableShortLongMap
-
removeKey
public void removeKey(short key) - Specified by:
removeKeyin interfaceMutableShortLongMap
-
remove
public void remove(short key) - Specified by:
removein interfaceMutableShortLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(short key, long value) - Specified by:
removeKeyIfAbsentin interfaceMutableShortLongMap
-
getIfAbsentPut
public long getIfAbsentPut(short key, long value) - Specified by:
getIfAbsentPutin interfaceMutableShortLongMap
-
getAndPut
public long getAndPut(short key, long putValue, long defaultValue) - Specified by:
getAndPutin interfaceMutableShortLongMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableShortLongMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortLongMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableShortLongMap
-
updateValue
- Specified by:
updateValuein interfaceMutableShortLongMap
-
get
public long get(short key) - Specified by:
getin interfaceShortLongMap
-
getIfAbsent
public long getIfAbsent(short key, long ifAbsent) - Specified by:
getIfAbsentin interfaceShortLongMap
-
getOrThrow
public long getOrThrow(short key) - Specified by:
getOrThrowin interfaceShortLongMap
-
containsKey
public boolean containsKey(short key) - Specified by:
containsKeyin interfaceShortLongMap
-
containsValue
public boolean containsValue(long value) - Specified by:
containsValuein interfaceLongValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceLongValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceShortLongMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceShortLongMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceShortLongMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceShortLongMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceShortLongMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceMutableShortLongMap- Specified by:
flipUniqueValuesin interfaceShortLongMap
-
select
- Specified by:
selectin interfaceMutableShortLongMap- Specified by:
selectin interfaceShortLongMap
-
reject
- Specified by:
rejectin interfaceMutableShortLongMap- Specified by:
rejectin interfaceShortLongMap
-
longIterator
This must be manually synchronized by the developer.- Specified by:
longIteratorin interfaceLongIterable- Specified by:
longIteratorin interfaceMutableLongValuesMap
-
each
- Specified by:
eachin interfaceLongIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceLongIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceLongIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceLongIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceLongIterable
-
select
- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceLongValuesMap- Specified by:
selectin interfaceMutableLongValuesMap
-
reject
- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceLongValuesMap- Specified by:
rejectin interfaceMutableLongValuesMap
-
collect
- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceLongValuesMap- Specified by:
collectin interfaceMutableLongValuesMap
-
detectIfNone
- Specified by:
detectIfNonein interfaceLongIterable
-
sum
public long sum()- Specified by:
sumin interfaceLongIterable
-
max
public long max()- Specified by:
maxin interfaceLongIterable
-
maxIfEmpty
public long maxIfEmpty(long defaultValue) - Specified by:
maxIfEmptyin interfaceLongIterable
-
min
public long min()- Specified by:
minin interfaceLongIterable
-
minIfEmpty
public long minIfEmpty(long defaultValue) - Specified by:
minIfEmptyin interfaceLongIterable
-
average
public double average()- Specified by:
averagein interfaceLongIterable
-
median
public double median()- Specified by:
medianin interfaceLongIterable
-
addToValue
public long addToValue(short key, long toBeAdded) - Specified by:
addToValuein interfaceMutableShortLongMap
-
toSortedArray
public long[] toSortedArray()- Specified by:
toSortedArrayin interfaceLongIterable
-
toSortedList
- Specified by:
toSortedListin interfaceLongIterable
-
toArray
public long[] toArray()- Specified by:
toArrayin interfaceLongIterable
-
toArray
public long[] toArray(long[] target) - Specified by:
toArrayin interfaceLongIterable
-
contains
public boolean contains(long value) - Specified by:
containsin interfaceLongIterable
-
containsAll
public boolean containsAll(long... source) - Specified by:
containsAllin interfaceLongIterable
-
containsAll
- Specified by:
containsAllin interfaceLongIterable
-
toList
- Specified by:
toListin interfaceLongIterable
-
toSet
- Specified by:
toSetin interfaceLongIterable
-
toBag
- Specified by:
toBagin interfaceLongIterable
-
asLazy
- Specified by:
asLazyin interfaceLongIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableShortLongMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableShortLongMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableShortLongMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableShortLongMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableShortLongMap
-
toImmutable
- Specified by:
toImmutablein interfaceShortLongMap
-
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 interfaceShortLongMap
-
values
- Specified by:
valuesin interfaceLongValuesMap
-
equals
- Specified by:
equalsin interfaceShortLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceShortLongMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortLongMap- 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, ObjectLongToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceLongIterable
-
chunk
- Specified by:
chunkin interfaceLongIterable
-