Class SynchronizedCharDoubleMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedCharDoubleMap
-
- All Implemented Interfaces:
Serializable,DoubleIterable,CharDoubleMap,DoubleValuesMap,MutableCharDoubleMap,MutableDoubleValuesMap,PrimitiveIterable
public class SynchronizedCharDoubleMap extends Object implements MutableCharDoubleMap, Serializable
A synchronized view of aMutableCharDoubleMap. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableDoubleIteratoras perCollections.synchronizedCollection(Collection).This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableCharDoubleMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedCharDoubleMap(MutableCharDoubleMap map)SynchronizedCharDoubleMap(MutableCharDoubleMap map, Object newLock)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.CharDoubleMap
injectIntoKeyValue
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharDoubleMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedCharDoubleMap
public SynchronizedCharDoubleMap(MutableCharDoubleMap map)
-
SynchronizedCharDoubleMap
public SynchronizedCharDoubleMap(MutableCharDoubleMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableDoubleValuesMap
-
put
public void put(char key, double value)- Specified by:
putin interfaceMutableCharDoubleMap
-
putPair
public void putPair(CharDoublePair keyValuePair)
- Specified by:
putPairin interfaceMutableCharDoubleMap
-
putAll
public void putAll(CharDoubleMap map)
- Specified by:
putAllin interfaceMutableCharDoubleMap
-
updateValues
public void updateValues(CharDoubleToDoubleFunction function)
- 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
public double getIfAbsentPut(char key, DoubleFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableCharDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(char key, CharToDoubleFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(char key, DoubleFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableCharDoubleMap
-
updateValue
public double updateValue(char key, double initialValueIfAbsent, DoubleToDoubleFunction function)- 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
public void forEachValue(DoubleProcedure procedure)
- Specified by:
forEachValuein interfaceDoubleValuesMap
-
forEachKey
public void forEachKey(CharProcedure procedure)
- Specified by:
forEachKeyin interfaceCharDoubleMap
-
forEachKeyValue
public void forEachKeyValue(CharDoubleProcedure procedure)
- Specified by:
forEachKeyValuein interfaceCharDoubleMap
-
keysView
public LazyCharIterable keysView()
- Specified by:
keysViewin interfaceCharDoubleMap
-
keyValuesView
public RichIterable<CharDoublePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceCharDoubleMap
-
flipUniqueValues
public MutableDoubleCharMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceCharDoubleMap- Specified by:
flipUniqueValuesin interfaceMutableCharDoubleMap
-
select
public MutableCharDoubleMap select(CharDoublePredicate predicate)
- Specified by:
selectin interfaceCharDoubleMap- Specified by:
selectin interfaceMutableCharDoubleMap
-
reject
public MutableCharDoubleMap reject(CharDoublePredicate predicate)
- Specified by:
rejectin interfaceCharDoubleMap- Specified by:
rejectin interfaceMutableCharDoubleMap
-
doubleIterator
public MutableDoubleIterator doubleIterator()
This must be manually synchronized by the developer.- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleValuesMap
-
each
public void each(DoubleProcedure procedure)
- Specified by:
eachin interfaceDoubleIterable- Since:
- 7.0.
-
count
public int count(DoublePredicate predicate)
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfyin interfaceDoubleIterable
-
select
public MutableDoubleBag select(DoublePredicate predicate)
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleValuesMap- Specified by:
selectin interfaceMutableDoubleValuesMap
-
reject
public MutableDoubleBag reject(DoublePredicate predicate)
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleValuesMap- Specified by:
rejectin interfaceMutableDoubleValuesMap
-
collect
public <V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleValuesMap- Specified by:
collectin interfaceMutableDoubleValuesMap
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- 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
public MutableDoubleList 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
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAllin interfaceDoubleIterable
-
toList
public MutableDoubleList toList()
- Specified by:
toListin interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSetin interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBagin interfaceDoubleIterable
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazyin interfaceDoubleIterable
-
withKeyValue
public MutableCharDoubleMap withKeyValue(char key, double value)
- Specified by:
withKeyValuein interfaceMutableCharDoubleMap
-
withoutKey
public MutableCharDoubleMap withoutKey(char key)
- Specified by:
withoutKeyin interfaceMutableCharDoubleMap
-
withoutAllKeys
public MutableCharDoubleMap withoutAllKeys(CharIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableCharDoubleMap
-
asUnmodifiable
public MutableCharDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCharDoubleMap
-
asSynchronized
public MutableCharDoubleMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCharDoubleMap
-
toImmutable
public ImmutableCharDoubleMap 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
public MutableCharSet keySet()
- Specified by:
keySetin interfaceCharDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
valuesin interfaceDoubleValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceCharDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCharDoubleMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceCharDoubleMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunkin interfaceDoubleIterable
-
-