DoubleIterable, DoubleValuesMap, MutableDoubleValuesMap, PrimitiveIterable, ShortDoubleMapShortDoubleHashMap, SynchronizedShortDoubleMap, UnmodifiableShortDoubleMappublic interface MutableShortDoubleMap extends ShortDoubleMap, MutableDoubleValuesMap
| Modifier and Type | Method | Description |
|---|---|---|
double |
addToValue(short key,
double toBeAdded) |
|
MutableShortDoubleMap |
asSynchronized() |
|
MutableShortDoubleMap |
asUnmodifiable() |
|
MutableDoubleShortMap |
flipUniqueValues() |
Return the DoubleShortMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
double |
getIfAbsentPut(short key,
double value) |
|
double |
getIfAbsentPut(short key,
DoubleFunction0 function) |
|
<P> double |
getIfAbsentPutWith(short key,
DoubleFunction<? super P> function,
P parameter) |
|
double |
getIfAbsentPutWithKey(short key,
ShortToDoubleFunction function) |
|
void |
put(short key,
double value) |
|
void |
putAll(ShortDoubleMap map) |
|
default void |
putPair(ShortDoublePair keyValuePair) |
This method allows MutableShortDoubleMap the ability to add an element in the form of ShortDoublePair.
|
MutableShortDoubleMap |
reject(ShortDoublePredicate predicate) |
|
void |
remove(short key) |
|
void |
removeKey(short key) |
|
double |
removeKeyIfAbsent(short key,
double value) |
|
MutableShortDoubleMap |
select(ShortDoublePredicate predicate) |
|
double |
updateValue(short key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
|
void |
updateValues(ShortDoubleToDoubleFunction function) |
Updates the values in-place.
|
default MutableShortDoubleMap |
withAllKeyValues(Iterable<ShortDoublePair> keyValuePairs) |
|
MutableShortDoubleMap |
withKeyValue(short key,
double value) |
|
MutableShortDoubleMap |
withoutAllKeys(ShortIterable keys) |
|
MutableShortDoubleMap |
withoutKey(short 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, toSortedListcontainsValue, forEachValue, tap, valuesclear, collect, doubleIterator, reject, selectappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizecontainsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toStringvoid put(short key,
double value)
default void putPair(ShortDoublePair keyValuePair)
put(short, double)void putAll(ShortDoubleMap map)
void updateValues(ShortDoubleToDoubleFunction function)
function - that takes a key and its value and that returns a new value for this keyvoid removeKey(short key)
void remove(short key)
double removeKeyIfAbsent(short key,
double value)
double getIfAbsentPut(short key,
double value)
double getIfAbsentPut(short key,
DoubleFunction0 function)
double getIfAbsentPutWithKey(short key,
ShortToDoubleFunction function)
<P> double getIfAbsentPutWith(short key,
DoubleFunction<? super P> function,
P parameter)
double updateValue(short key,
double initialValueIfAbsent,
DoubleToDoubleFunction function)
MutableDoubleShortMap flipUniqueValues()
ShortDoubleMapflipUniqueValues in interface ShortDoubleMapMutableShortDoubleMap select(ShortDoublePredicate predicate)
select in interface ShortDoubleMapMutableShortDoubleMap reject(ShortDoublePredicate predicate)
reject in interface ShortDoubleMapMutableShortDoubleMap withKeyValue(short key, double value)
MutableShortDoubleMap withoutKey(short key)
MutableShortDoubleMap withoutAllKeys(ShortIterable keys)
default MutableShortDoubleMap withAllKeyValues(Iterable<ShortDoublePair> keyValuePairs)
MutableShortDoubleMap asUnmodifiable()
MutableShortDoubleMap asSynchronized()
double addToValue(short key,
double toBeAdded)
Copyright © 2004–2019. All rights reserved.