DoubleShortMap
, MutableShortValuesMap
, PrimitiveIterable
, ShortIterable
, ShortValuesMap
DoubleShortHashMap
, SynchronizedDoubleShortMap
, UnmodifiableDoubleShortMap
public interface MutableDoubleShortMap extends DoubleShortMap, MutableShortValuesMap
Modifier and Type | Method | Description |
---|---|---|
short |
addToValue(double key,
short toBeAdded) |
|
MutableDoubleShortMap |
asSynchronized() |
|
MutableDoubleShortMap |
asUnmodifiable() |
|
MutableShortDoubleMap |
flipUniqueValues() |
Return the ShortDoubleMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
short |
getIfAbsentPut(double key,
short value) |
|
short |
getIfAbsentPut(double key,
ShortFunction0 function) |
|
<P> short |
getIfAbsentPutWith(double key,
ShortFunction<? super P> function,
P parameter) |
|
short |
getIfAbsentPutWithKey(double key,
DoubleToShortFunction function) |
|
void |
put(double key,
short value) |
|
void |
putAll(DoubleShortMap map) |
|
default void |
putPair(DoubleShortPair keyValuePair) |
This method allows MutableDoubleShortMap the ability to add an element in the form of DoubleShortPair.
|
MutableDoubleShortMap |
reject(DoubleShortPredicate predicate) |
|
void |
remove(double key) |
|
void |
removeKey(double key) |
|
short |
removeKeyIfAbsent(double key,
short value) |
|
MutableDoubleShortMap |
select(DoubleShortPredicate predicate) |
|
short |
updateValue(double key,
short initialValueIfAbsent,
ShortToShortFunction function) |
|
void |
updateValues(DoubleShortToShortFunction function) |
Updates the values in-place.
|
default MutableDoubleShortMap |
withAllKeyValues(Iterable<DoubleShortPair> keyValuePairs) |
|
MutableDoubleShortMap |
withKeyValue(double key,
short value) |
|
MutableDoubleShortMap |
withoutAllKeys(DoubleIterable keys) |
|
MutableDoubleShortMap |
withoutKey(double key) |
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
clear, collect, reject, select, shortIterator
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
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
void put(double key, short value)
default void putPair(DoubleShortPair keyValuePair)
put(double, short)
void putAll(DoubleShortMap map)
void updateValues(DoubleShortToShortFunction 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)
short removeKeyIfAbsent(double key, short value)
short getIfAbsentPut(double key, short value)
short getIfAbsentPut(double key, ShortFunction0 function)
short getIfAbsentPutWithKey(double key, DoubleToShortFunction function)
<P> short getIfAbsentPutWith(double key, ShortFunction<? super P> function, P parameter)
short updateValue(double key, short initialValueIfAbsent, ShortToShortFunction function)
MutableShortDoubleMap flipUniqueValues()
DoubleShortMap
flipUniqueValues
in interface DoubleShortMap
MutableDoubleShortMap select(DoubleShortPredicate predicate)
select
in interface DoubleShortMap
MutableDoubleShortMap reject(DoubleShortPredicate predicate)
reject
in interface DoubleShortMap
MutableDoubleShortMap withKeyValue(double key, short value)
MutableDoubleShortMap withoutKey(double key)
MutableDoubleShortMap withoutAllKeys(DoubleIterable keys)
default MutableDoubleShortMap withAllKeyValues(Iterable<DoubleShortPair> keyValuePairs)
MutableDoubleShortMap asUnmodifiable()
MutableDoubleShortMap asSynchronized()
short addToValue(double key, short toBeAdded)
Copyright © 2004–2019. All rights reserved.