DoubleIterable
, DoubleValuesMap
, LongDoubleMap
, MutableDoubleValuesMap
, PrimitiveIterable
LongDoubleHashMap
, SynchronizedLongDoubleMap
, UnmodifiableLongDoubleMap
public interface MutableLongDoubleMap extends LongDoubleMap, MutableDoubleValuesMap
Modifier and Type | Method | Description |
---|---|---|
double |
addToValue(long key,
double toBeAdded) |
|
MutableLongDoubleMap |
asSynchronized() |
|
MutableLongDoubleMap |
asUnmodifiable() |
|
MutableDoubleLongMap |
flipUniqueValues() |
Return the DoubleLongMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
double |
getIfAbsentPut(long key,
double value) |
|
double |
getIfAbsentPut(long key,
DoubleFunction0 function) |
|
<P> double |
getIfAbsentPutWith(long key,
DoubleFunction<? super P> function,
P parameter) |
|
double |
getIfAbsentPutWithKey(long key,
LongToDoubleFunction function) |
|
void |
put(long key,
double value) |
|
void |
putAll(LongDoubleMap map) |
|
default void |
putPair(LongDoublePair keyValuePair) |
This method allows MutableLongDoubleMap the ability to add an element in the form of LongDoublePair.
|
MutableLongDoubleMap |
reject(LongDoublePredicate predicate) |
|
void |
remove(long key) |
|
void |
removeKey(long key) |
|
double |
removeKeyIfAbsent(long key,
double value) |
|
MutableLongDoubleMap |
select(LongDoublePredicate predicate) |
|
double |
updateValue(long key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
|
void |
updateValues(LongDoubleToDoubleFunction function) |
Updates the values in-place.
|
default MutableLongDoubleMap |
withAllKeyValues(Iterable<LongDoublePair> keyValuePairs) |
|
MutableLongDoubleMap |
withKeyValue(long key,
double value) |
|
MutableLongDoubleMap |
withoutAllKeys(LongIterable keys) |
|
MutableLongDoubleMap |
withoutKey(long key) |
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
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
clear, collect, doubleIterator, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
void put(long key, double value)
default void putPair(LongDoublePair keyValuePair)
put(long, double)
void putAll(LongDoubleMap map)
void updateValues(LongDoubleToDoubleFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(long key)
void remove(long key)
double removeKeyIfAbsent(long key, double value)
double getIfAbsentPut(long key, double value)
double getIfAbsentPut(long key, DoubleFunction0 function)
double getIfAbsentPutWithKey(long key, LongToDoubleFunction function)
<P> double getIfAbsentPutWith(long key, DoubleFunction<? super P> function, P parameter)
double updateValue(long key, double initialValueIfAbsent, DoubleToDoubleFunction function)
MutableDoubleLongMap flipUniqueValues()
LongDoubleMap
flipUniqueValues
in interface LongDoubleMap
MutableLongDoubleMap select(LongDoublePredicate predicate)
select
in interface LongDoubleMap
MutableLongDoubleMap reject(LongDoublePredicate predicate)
reject
in interface LongDoubleMap
MutableLongDoubleMap withKeyValue(long key, double value)
MutableLongDoubleMap withoutKey(long key)
MutableLongDoubleMap withoutAllKeys(LongIterable keys)
default MutableLongDoubleMap withAllKeyValues(Iterable<LongDoublePair> keyValuePairs)
MutableLongDoubleMap asUnmodifiable()
MutableLongDoubleMap asSynchronized()
double addToValue(long key, double toBeAdded)
Copyright © 2004–2019. All rights reserved.