Class SynchronizedDoubleCharMap
java.lang.Object
org.eclipse.collections.impl.map.mutable.primitive.SynchronizedDoubleCharMap
- All Implemented Interfaces:
Serializable,CharIterable,CharValuesMap,DoubleCharMap,MutableCharValuesMap,MutableDoubleCharMap,PrimitiveIterable
A synchronized view of a
MutableDoubleCharMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableCharIterator 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 TypeMethodDescriptioncharaddToValue(double key, char toBeAdded) booleanallSatisfy(CharPredicate predicate) booleanallSatisfyKeyValue(DoubleCharPredicate predicate) booleananySatisfy(CharPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()This must be manually synchronized by the developer.chunk(int size) voidclear()<V> MutableBag<V>collect(CharToObjectFunction<? extends V> function) booleancontains(char value) booleancontainsAll(char... source) booleancontainsAll(CharIterable source) booleancontainsKey(double key) booleancontainsValue(char value) intcount(CharPredicate predicate) chardetectIfNone(CharPredicate predicate, char ifNone) voideach(CharProcedure procedure) booleanvoidforEachKey(DoubleProcedure procedure) voidforEachKeyValue(DoubleCharProcedure procedure) voidforEachValue(CharProcedure procedure) charget(double key) chargetAndPut(double key, char putValue, char defaultValue) chargetIfAbsent(double key, char ifAbsent) chargetIfAbsentPut(double key, char value) chargetIfAbsentPut(double key, CharFunction0 function) <P> chargetIfAbsentPutWith(double key, CharFunction<? super P> function, P parameter) chargetIfAbsentPutWithKey(double key, DoubleToCharFunction function) chargetOrThrow(double key) inthashCode()<T> TinjectInto(T injectedValue, ObjectCharToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) charmax()charmaxIfEmpty(char defaultValue) doublemedian()charmin()charminIfEmpty(char defaultValue) booleannoneSatisfy(CharPredicate predicate) booleannotEmpty()voidput(double key, char value) voidputAll(DoubleCharMap map) voidputPair(DoubleCharPair keyValuePair) reject(CharPredicate predicate) reject(DoubleCharPredicate predicate) voidremove(double key) voidremoveKey(double key) charremoveKeyIfAbsent(double key, char value) select(CharPredicate predicate) select(DoubleCharPredicate predicate) intsize()longsum()char[]toArray()char[]toArray(char[] target) toBag()toList()toSet()char[]toString()charupdateValue(double key, char initialValueIfAbsent, CharToCharFunction function) voidupdateValues(DoubleCharToCharFunction function) values()withKeyValue(double key, char value) withoutAllKeys(DoubleIterable keys) withoutKey(double key) Methods inherited from interface org.eclipse.collections.api.CharIterable
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.CharValuesMap
tapMethods inherited from interface org.eclipse.collections.api.map.primitive.DoubleCharMap
injectIntoKeyValueMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleCharMap
withAllKeyValues
-
Constructor Details
-
SynchronizedDoubleCharMap
-
SynchronizedDoubleCharMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableCharValuesMap
-
put
public void put(double key, char value) - Specified by:
putin interfaceMutableDoubleCharMap
-
putPair
- Specified by:
putPairin interfaceMutableDoubleCharMap
-
putAll
- Specified by:
putAllin interfaceMutableDoubleCharMap
-
updateValues
- Specified by:
updateValuesin interfaceMutableDoubleCharMap
-
removeKey
public void removeKey(double key) - Specified by:
removeKeyin interfaceMutableDoubleCharMap
-
remove
public void remove(double key) - Specified by:
removein interfaceMutableDoubleCharMap
-
removeKeyIfAbsent
public char removeKeyIfAbsent(double key, char value) - Specified by:
removeKeyIfAbsentin interfaceMutableDoubleCharMap
-
getIfAbsentPut
public char getIfAbsentPut(double key, char value) - Specified by:
getIfAbsentPutin interfaceMutableDoubleCharMap
-
getAndPut
public char getAndPut(double key, char putValue, char defaultValue) - Specified by:
getAndPutin interfaceMutableDoubleCharMap
-
getIfAbsentPut
- Specified by:
getIfAbsentPutin interfaceMutableDoubleCharMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleCharMap
-
getIfAbsentPutWith
- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleCharMap
-
updateValue
- Specified by:
updateValuein interfaceMutableDoubleCharMap
-
get
public char get(double key) - Specified by:
getin interfaceDoubleCharMap
-
getIfAbsent
public char getIfAbsent(double key, char ifAbsent) - Specified by:
getIfAbsentin interfaceDoubleCharMap
-
getOrThrow
public char getOrThrow(double key) - Specified by:
getOrThrowin interfaceDoubleCharMap
-
containsKey
public boolean containsKey(double key) - Specified by:
containsKeyin interfaceDoubleCharMap
-
containsValue
public boolean containsValue(char value) - Specified by:
containsValuein interfaceCharValuesMap
-
forEachValue
- Specified by:
forEachValuein interfaceCharValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceDoubleCharMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceDoubleCharMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceDoubleCharMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceDoubleCharMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceDoubleCharMap
-
flipUniqueValues
- Specified by:
flipUniqueValuesin interfaceDoubleCharMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleCharMap
-
select
- Specified by:
selectin interfaceDoubleCharMap- Specified by:
selectin interfaceMutableDoubleCharMap
-
reject
- Specified by:
rejectin interfaceDoubleCharMap- Specified by:
rejectin interfaceMutableDoubleCharMap
-
charIterator
This must be manually synchronized by the developer.- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharValuesMap
-
each
- Specified by:
eachin interfaceCharIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceCharIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceCharIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceCharIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceCharIterable
-
select
- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceCharValuesMap- Specified by:
selectin interfaceMutableCharValuesMap
-
reject
- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceCharValuesMap- Specified by:
rejectin interfaceMutableCharValuesMap
-
collect
- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceCharValuesMap- Specified by:
collectin interfaceMutableCharValuesMap
-
detectIfNone
- Specified by:
detectIfNonein interfaceCharIterable
-
sum
public long sum()- Specified by:
sumin interfaceCharIterable
-
max
public char max()- Specified by:
maxin interfaceCharIterable
-
maxIfEmpty
public char maxIfEmpty(char defaultValue) - Specified by:
maxIfEmptyin interfaceCharIterable
-
min
public char min()- Specified by:
minin interfaceCharIterable
-
minIfEmpty
public char minIfEmpty(char defaultValue) - Specified by:
minIfEmptyin interfaceCharIterable
-
average
public double average()- Specified by:
averagein interfaceCharIterable
-
median
public double median()- Specified by:
medianin interfaceCharIterable
-
addToValue
public char addToValue(double key, char toBeAdded) - Specified by:
addToValuein interfaceMutableDoubleCharMap
-
toSortedArray
public char[] toSortedArray()- Specified by:
toSortedArrayin interfaceCharIterable
-
toSortedList
- Specified by:
toSortedListin interfaceCharIterable
-
toArray
public char[] toArray()- Specified by:
toArrayin interfaceCharIterable
-
toArray
public char[] toArray(char[] target) - Specified by:
toArrayin interfaceCharIterable
-
contains
public boolean contains(char value) - Specified by:
containsin interfaceCharIterable
-
containsAll
public boolean containsAll(char... source) - Specified by:
containsAllin interfaceCharIterable
-
containsAll
- Specified by:
containsAllin interfaceCharIterable
-
toList
- Specified by:
toListin interfaceCharIterable
-
toSet
- Specified by:
toSetin interfaceCharIterable
-
toBag
- Specified by:
toBagin interfaceCharIterable
-
asLazy
- Specified by:
asLazyin interfaceCharIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableDoubleCharMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableDoubleCharMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableDoubleCharMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableDoubleCharMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableDoubleCharMap
-
toImmutable
- Specified by:
toImmutablein interfaceDoubleCharMap
-
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 interfaceDoubleCharMap
-
values
- Specified by:
valuesin interfaceCharValuesMap
-
equals
- Specified by:
equalsin interfaceDoubleCharMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceDoubleCharMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfaceDoubleCharMap- 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, ObjectCharToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceCharIterable
-
chunk
- Specified by:
chunkin interfaceCharIterable
-