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