Class SynchronizedDoubleLongMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedDoubleLongMap
- All Implemented Interfaces:
Serializable,LongIterable,DoubleLongMap,LongValuesMap,MutableDoubleLongMap,MutableLongValuesMap,PrimitiveIterable
A synchronized view of a
MutableDoubleLongMap. 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(double key, long toBeAdded) booleanallSatisfy(LongPredicate predicate) booleanallSatisfyKeyValue(DoubleLongPredicate 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(double key) booleancontainsValue(long value) intcount(LongPredicate predicate) longdetectIfNone(LongPredicate predicate, long ifNone) voideach(LongProcedure procedure) booleanvoidforEachKey(DoubleProcedure procedure) voidforEachKeyValue(DoubleLongProcedure procedure) voidforEachValue(LongProcedure procedure) longget(double key) longgetAndPut(double key, long putValue, long defaultValue) longgetIfAbsent(double key, long ifAbsent) longgetIfAbsentPut(double key, long value) longgetIfAbsentPut(double key, LongFunction0 function) <P> longgetIfAbsentPutWith(double key, LongFunction<? super P> function, P parameter) longgetIfAbsentPutWithKey(double key, DoubleToLongFunction function) longgetOrThrow(double 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(double key, long value) voidputAll(DoubleLongMap map) voidputPair(DoubleLongPair keyValuePair) reject(DoubleLongPredicate predicate) reject(LongPredicate predicate) voidremove(double key) voidremoveKey(double key) longremoveKeyIfAbsent(double key, long value) select(DoubleLongPredicate predicate) select(LongPredicate predicate) intsize()longsum()long[]toArray()long[]toArray(long[] target) toBag()toList()toSet()long[]toString()longupdateValue(double key, long initialValueIfAbsent, LongToLongFunction function) voidupdateValues(DoubleLongToLongFunction function) values()withKeyValue(double key, long value) withoutAllKeys(DoubleIterable keys) withoutKey(double key) Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleLongMap
injectIntoKeyValueMethods 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.MutableDoubleLongMap
withAllKeyValues
-
Constructor Details
-
SynchronizedDoubleLongMap
-
SynchronizedDoubleLongMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableLongValuesMap
-
put
public void put(double key, long value) - Specified by:
putin interfaceMutableDoubleLongMap
-
putPair
- Specified by:
putPairin interfaceMutableDoubleLongMap
-
putAll
- Specified by:
putAllin interfaceMutableDoubleLongMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableDoubleLongMap
-
removeKey
public void removeKey(double key) - Specified by:
removeKeyin interfaceMutableDoubleLongMap
-
remove
public void remove(double key) - Specified by:
removein interfaceMutableDoubleLongMap
-
removeKeyIfAbsent
public long removeKeyIfAbsent(double key, long value) - Specified by:
removeKeyIfAbsentin interfaceMutableDoubleLongMap
-
getIfAbsentPut
public long getIfAbsentPut(double key, long value) - Specified by:
getIfAbsentPutin interfaceMutableDoubleLongMap
-
getAndPut
public long getAndPut(double key, long putValue, long defaultValue) - Specified by:
getAndPutin interfaceMutableDoubleLongMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableDoubleLongMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleLongMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleLongMap
-
updateValue
- Specified by:
updateValuein interfaceMutableDoubleLongMap
-
get
public long get(double key) - Specified by:
getin interfaceDoubleLongMap
-
getIfAbsent
public long getIfAbsent(double key, long ifAbsent) - Specified by:
getIfAbsentin interfaceDoubleLongMap
-
getOrThrow
public long getOrThrow(double key) - Specified by:
getOrThrowin interfaceDoubleLongMap
-
containsKey
public boolean containsKey(double key) - Specified by:
containsKeyin interfaceDoubleLongMap
-
containsValue
public boolean containsValue(long value) - Specified by:
containsValuein interfaceLongValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceLongValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceDoubleLongMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceDoubleLongMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceDoubleLongMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceDoubleLongMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceDoubleLongMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceDoubleLongMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleLongMap
-
select
- Specified by:
selectin interfaceDoubleLongMap- Specified by:
selectin interfaceMutableDoubleLongMap
-
reject
- Specified by:
rejectin interfaceDoubleLongMap- Specified by:
rejectin interfaceMutableDoubleLongMap
-
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(double key, long toBeAdded) - Specified by:
addToValuein interfaceMutableDoubleLongMap
-
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 interfaceMutableDoubleLongMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableDoubleLongMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableDoubleLongMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableDoubleLongMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableDoubleLongMap
-
toImmutable
- Specified by:
toImmutablein interfaceDoubleLongMap
-
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 interfaceDoubleLongMap
-
values
- Specified by:
valuesin interfaceLongValuesMap
-
equals
- Specified by:
equalsin interfaceDoubleLongMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceDoubleLongMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceDoubleLongMap- 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, ObjectLongToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceLongIterable
-
chunk
- Specified by:
chunkin interfaceLongIterable
-