CharDoubleMap
, DoubleIterable
, DoubleValuesMap
, MutableDoubleValuesMap
, PrimitiveIterable
CharDoubleHashMap
, SynchronizedCharDoubleMap
, UnmodifiableCharDoubleMap
public interface MutableCharDoubleMap extends CharDoubleMap, MutableDoubleValuesMap
Modifier and Type | Method | Description |
---|---|---|
double |
addToValue(char key,
double toBeAdded) |
|
MutableCharDoubleMap |
asSynchronized() |
|
MutableCharDoubleMap |
asUnmodifiable() |
|
MutableDoubleCharMap |
flipUniqueValues() |
Return the DoubleCharMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
double |
getIfAbsentPut(char key,
double value) |
|
double |
getIfAbsentPut(char key,
DoubleFunction0 function) |
|
<P> double |
getIfAbsentPutWith(char key,
DoubleFunction<? super P> function,
P parameter) |
|
double |
getIfAbsentPutWithKey(char key,
CharToDoubleFunction function) |
|
void |
put(char key,
double value) |
|
void |
putAll(CharDoubleMap map) |
|
default void |
putPair(CharDoublePair keyValuePair) |
This method allows MutableCharDoubleMap the ability to add an element in the form of CharDoublePair.
|
MutableCharDoubleMap |
reject(CharDoublePredicate predicate) |
|
void |
remove(char key) |
|
void |
removeKey(char key) |
|
double |
removeKeyIfAbsent(char key,
double value) |
|
MutableCharDoubleMap |
select(CharDoublePredicate predicate) |
|
double |
updateValue(char key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
|
void |
updateValues(CharDoubleToDoubleFunction function) |
Updates the values in-place.
|
default MutableCharDoubleMap |
withAllKeyValues(Iterable<CharDoublePair> keyValuePairs) |
|
MutableCharDoubleMap |
withKeyValue(char key,
double value) |
|
MutableCharDoubleMap |
withoutAllKeys(CharIterable keys) |
|
MutableCharDoubleMap |
withoutKey(char key) |
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
containsValue, forEachValue, tap, values
clear, collect, doubleIterator, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
void put(char key, double value)
default void putPair(CharDoublePair keyValuePair)
put(char, double)
void putAll(CharDoubleMap map)
void updateValues(CharDoubleToDoubleFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(char key)
void remove(char key)
double removeKeyIfAbsent(char key, double value)
double getIfAbsentPut(char key, double value)
double getIfAbsentPut(char key, DoubleFunction0 function)
double getIfAbsentPutWithKey(char key, CharToDoubleFunction function)
<P> double getIfAbsentPutWith(char key, DoubleFunction<? super P> function, P parameter)
double updateValue(char key, double initialValueIfAbsent, DoubleToDoubleFunction function)
MutableDoubleCharMap flipUniqueValues()
CharDoubleMap
flipUniqueValues
in interface CharDoubleMap
MutableCharDoubleMap select(CharDoublePredicate predicate)
select
in interface CharDoubleMap
MutableCharDoubleMap reject(CharDoublePredicate predicate)
reject
in interface CharDoubleMap
MutableCharDoubleMap withKeyValue(char key, double value)
MutableCharDoubleMap withoutKey(char key)
MutableCharDoubleMap withoutAllKeys(CharIterable keys)
default MutableCharDoubleMap withAllKeyValues(Iterable<CharDoublePair> keyValuePairs)
MutableCharDoubleMap asUnmodifiable()
MutableCharDoubleMap asSynchronized()
double addToValue(char key, double toBeAdded)
Copyright © 2004–2019. All rights reserved.