Class SynchronizedCharDoubleMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedCharDoubleMap
- All Implemented Interfaces:
Serializable,DoubleIterable,CharDoubleMap,DoubleValuesMap,MutableCharDoubleMap,MutableDoubleValuesMap,PrimitiveIterable
A synchronized view of a
MutableCharDoubleMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableDoubleIterator 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 TypeMethodDescriptiondoubleaddToValue(char key, double toBeAdded) booleanallSatisfy(DoublePredicate predicate) booleanallSatisfyKeyValue(CharDoublePredicate predicate) booleananySatisfy(DoublePredicate 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(DoubleToObjectFunction<? extends V> function) booleancontains(double value) booleancontainsAll(double... source) booleancontainsAll(DoubleIterable source) booleancontainsKey(char key) booleancontainsValue(double value) intcount(DoublePredicate predicate) doubledetectIfNone(DoublePredicate predicate, double ifNone) This must be manually synchronized by the developer.voideach(DoubleProcedure procedure) booleanvoidforEachKey(CharProcedure procedure) voidforEachKeyValue(CharDoubleProcedure procedure) voidforEachValue(DoubleProcedure procedure) doubleget(char key) doublegetAndPut(char key, double putValue, double defaultValue) doublegetIfAbsent(char key, double ifAbsent) doublegetIfAbsentPut(char key, double value) doublegetIfAbsentPut(char key, DoubleFunction0 function) <P> doublegetIfAbsentPutWith(char key, DoubleFunction<? super P> function, P parameter) doublegetIfAbsentPutWithKey(char key, CharToDoubleFunction function) doublegetOrThrow(char key) inthashCode()<T> TinjectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) doublemax()doublemaxIfEmpty(double defaultValue) doublemedian()doublemin()doubleminIfEmpty(double defaultValue) booleannoneSatisfy(DoublePredicate predicate) booleannotEmpty()voidput(char key, double value) voidputAll(CharDoubleMap map) voidputPair(CharDoublePair keyValuePair) reject(CharDoublePredicate predicate) reject(DoublePredicate predicate) voidremove(char key) voidremoveKey(char key) doubleremoveKeyIfAbsent(char key, double value) select(CharDoublePredicate predicate) select(DoublePredicate predicate) intsize()doublesum()double[]toArray()double[]toArray(double[] target) toBag()toList()toSet()double[]toString()doubleupdateValue(char key, double initialValueIfAbsent, DoubleToDoubleFunction function) voidupdateValues(CharDoubleToDoubleFunction function) values()withKeyValue(char key, double value) withoutAllKeys(CharIterable keys) withoutKey(char key) Methods inherited from interface org.eclipse.collections.api.map.primitive.CharDoubleMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.DoubleIterable
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.DoubleValuesMap
tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMap
withAllKeyValues
-
Constructor Details
-
SynchronizedCharDoubleMap
-
SynchronizedCharDoubleMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableDoubleValuesMap
-
put
public void put(char key, double value) - Specified by:
putin interfaceMutableCharDoubleMap
-
putPair
- Specified by:
putPairin interfaceMutableCharDoubleMap
-
putAll
- Specified by:
putAllin interfaceMutableCharDoubleMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableCharDoubleMap
-
removeKey
public void removeKey(char key) - Specified by:
removeKeyin interfaceMutableCharDoubleMap
-
remove
public void remove(char key) - Specified by:
removein interfaceMutableCharDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(char key, double value) - Specified by:
removeKeyIfAbsentin interfaceMutableCharDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(char key, double value) - Specified by:
getIfAbsentPutin interfaceMutableCharDoubleMap
-
getAndPut
public double getAndPut(char key, double putValue, double defaultValue) - Specified by:
getAndPutin interfaceMutableCharDoubleMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableCharDoubleMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharDoubleMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableCharDoubleMap
-
updateValue
- Specified by:
updateValuein interfaceMutableCharDoubleMap
-
get
public double get(char key) - Specified by:
getin interfaceCharDoubleMap
-
getIfAbsent
public double getIfAbsent(char key, double ifAbsent) - Specified by:
getIfAbsentin interfaceCharDoubleMap
-
getOrThrow
public double getOrThrow(char key) - Specified by:
getOrThrowin interfaceCharDoubleMap
-
containsKey
public boolean containsKey(char key) - Specified by:
containsKeyin interfaceCharDoubleMap
-
containsValue
public boolean containsValue(double value) - Specified by:
containsValuein interfaceDoubleValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceDoubleValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceCharDoubleMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceCharDoubleMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceCharDoubleMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceCharDoubleMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceCharDoubleMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceCharDoubleMap- Specified by:
flipUniqueValuesin interfaceMutableCharDoubleMap
-
select
- Specified by:
selectin interfaceCharDoubleMap- Specified by:
selectin interfaceMutableCharDoubleMap
-
reject
- Specified by:
rejectin interfaceCharDoubleMap- Specified by:
rejectin interfaceMutableCharDoubleMap
-
doubleIterator
This must be manually synchronized by the developer.- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleValuesMap
-
each
- Specified by:
eachin interfaceDoubleIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceDoubleIterable
-
select
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleValuesMap- Specified by:
selectin interfaceMutableDoubleValuesMap
-
reject
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleValuesMap- Specified by:
rejectin interfaceMutableDoubleValuesMap
-
collect
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleValuesMap- Specified by:
collectin interfaceMutableDoubleValuesMap
-
detectIfNone
- Specified by:
detectIfNonein interfaceDoubleIterable
-
sum
public double sum()- Specified by:
sumin interfaceDoubleIterable
-
max
public double max()- Specified by:
maxin interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue) - Specified by:
maxIfEmptyin interfaceDoubleIterable
-
min
public double min()- Specified by:
minin interfaceDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue) - Specified by:
minIfEmptyin interfaceDoubleIterable
-
average
public double average()- Specified by:
averagein interfaceDoubleIterable
-
median
public double median()- Specified by:
medianin interfaceDoubleIterable
-
addToValue
public double addToValue(char key, double toBeAdded) - Specified by:
addToValuein interfaceMutableCharDoubleMap
-
toSortedArray
public double[] toSortedArray()- Specified by:
toSortedArrayin interfaceDoubleIterable
-
toSortedList
- Specified by:
toSortedListin interfaceDoubleIterable
-
toArray
public double[] toArray()- Specified by:
toArrayin interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target) - Specified by:
toArrayin interfaceDoubleIterable
-
contains
public boolean contains(double value) - Specified by:
containsin interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source) - Specified by:
containsAllin interfaceDoubleIterable
-
containsAll
- Specified by:
containsAllin interfaceDoubleIterable
-
toList
- Specified by:
toListin interfaceDoubleIterable
-
toSet
- Specified by:
toSetin interfaceDoubleIterable
-
toBag
- Specified by:
toBagin interfaceDoubleIterable
-
asLazy
- Specified by:
asLazyin interfaceDoubleIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableCharDoubleMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableCharDoubleMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableCharDoubleMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharDoubleMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharDoubleMap
-
toImmutable
- Specified by:
toImmutablein interfaceCharDoubleMap
-
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 interfaceCharDoubleMap
-
values
- Specified by:
valuesin interfaceDoubleValuesMap
-
equals
- Specified by:
equalsin interfaceCharDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCharDoubleMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceCharDoubleMap- 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, ObjectDoubleToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceDoubleIterable
-
chunk
- Specified by:
chunkin interfaceDoubleIterable
-