DoubleIterable
, DoubleValuesMap
, MutableDoubleValuesMap
, PrimitiveIterable
, ShortDoubleMap
ShortDoubleHashMap
, SynchronizedShortDoubleMap
, UnmodifiableShortDoubleMap
public 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, toSortedList
containsValue, forEachValue, tap, values
clear, collect, doubleIterator, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
void 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()
ShortDoubleMap
flipUniqueValues
in interface ShortDoubleMap
MutableShortDoubleMap select(ShortDoublePredicate predicate)
select
in interface ShortDoubleMap
MutableShortDoubleMap reject(ShortDoublePredicate predicate)
reject
in interface ShortDoubleMap
MutableShortDoubleMap 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.