DoubleDoubleMap
, DoubleIterable
, DoubleValuesMap
, MutableDoubleValuesMap
, PrimitiveIterable
DoubleDoubleHashMap
, SynchronizedDoubleDoubleMap
, UnmodifiableDoubleDoubleMap
public interface MutableDoubleDoubleMap extends DoubleDoubleMap, MutableDoubleValuesMap
Modifier and Type | Method | Description |
---|---|---|
double |
addToValue(double key,
double toBeAdded) |
|
MutableDoubleDoubleMap |
asSynchronized() |
|
MutableDoubleDoubleMap |
asUnmodifiable() |
|
MutableDoubleDoubleMap |
flipUniqueValues() |
Return the DoubleDoubleMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
double |
getIfAbsentPut(double key,
double value) |
|
double |
getIfAbsentPut(double key,
DoubleFunction0 function) |
|
<P> double |
getIfAbsentPutWith(double key,
DoubleFunction<? super P> function,
P parameter) |
|
double |
getIfAbsentPutWithKey(double key,
DoubleToDoubleFunction function) |
|
void |
put(double key,
double value) |
|
void |
putAll(DoubleDoubleMap map) |
|
default void |
putPair(DoubleDoublePair keyValuePair) |
This method allows MutableDoubleDoubleMap the ability to add an element in the form of DoubleDoublePair.
|
MutableDoubleDoubleMap |
reject(DoubleDoublePredicate predicate) |
|
void |
remove(double key) |
|
void |
removeKey(double key) |
|
double |
removeKeyIfAbsent(double key,
double value) |
|
MutableDoubleDoubleMap |
select(DoubleDoublePredicate predicate) |
|
double |
updateValue(double key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
|
void |
updateValues(DoubleDoubleToDoubleFunction function) |
Updates the values in-place.
|
default MutableDoubleDoubleMap |
withAllKeyValues(Iterable<DoubleDoublePair> keyValuePairs) |
|
MutableDoubleDoubleMap |
withKeyValue(double key,
double value) |
|
MutableDoubleDoubleMap |
withoutAllKeys(DoubleIterable keys) |
|
MutableDoubleDoubleMap |
withoutKey(double 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(double key, double value)
default void putPair(DoubleDoublePair keyValuePair)
put(double, double)
void putAll(DoubleDoubleMap map)
void updateValues(DoubleDoubleToDoubleFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(double key)
void remove(double key)
double removeKeyIfAbsent(double key, double value)
double getIfAbsentPut(double key, double value)
double getIfAbsentPut(double key, DoubleFunction0 function)
double getIfAbsentPutWithKey(double key, DoubleToDoubleFunction function)
<P> double getIfAbsentPutWith(double key, DoubleFunction<? super P> function, P parameter)
double updateValue(double key, double initialValueIfAbsent, DoubleToDoubleFunction function)
MutableDoubleDoubleMap flipUniqueValues()
DoubleDoubleMap
flipUniqueValues
in interface DoubleDoubleMap
MutableDoubleDoubleMap select(DoubleDoublePredicate predicate)
select
in interface DoubleDoubleMap
MutableDoubleDoubleMap reject(DoubleDoublePredicate predicate)
reject
in interface DoubleDoubleMap
MutableDoubleDoubleMap withKeyValue(double key, double value)
MutableDoubleDoubleMap withoutKey(double key)
MutableDoubleDoubleMap withoutAllKeys(DoubleIterable keys)
default MutableDoubleDoubleMap withAllKeyValues(Iterable<DoubleDoublePair> keyValuePairs)
MutableDoubleDoubleMap asUnmodifiable()
MutableDoubleDoubleMap asSynchronized()
double addToValue(double key, double toBeAdded)
Copyright © 2004–2019. All rights reserved.