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