public interface MutableByteDoubleMap extends ByteDoubleMap, MutableDoubleValuesMap
| Modifier and Type | Method and Description |
|---|---|
double |
addToValue(byte key,
double toBeAdded) |
MutableByteDoubleMap |
asSynchronized() |
MutableByteDoubleMap |
asUnmodifiable() |
MutableDoubleByteMap |
flipUniqueValues()
Return the DoubleByteMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
double |
getIfAbsentPut(byte key,
double value) |
double |
getIfAbsentPut(byte key,
DoubleFunction0 function) |
<P> double |
getIfAbsentPutWith(byte key,
DoubleFunction<? super P> function,
P parameter) |
double |
getIfAbsentPutWithKey(byte key,
ByteToDoubleFunction function) |
void |
put(byte key,
double value) |
void |
putAll(ByteDoubleMap map) |
default void |
putPair(ByteDoublePair keyValuePair)
This method allows MutableByteDoubleMap the ability to add an element in the form of ByteDoublePair.
|
MutableByteDoubleMap |
reject(ByteDoublePredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
double |
removeKeyIfAbsent(byte key,
double value) |
MutableByteDoubleMap |
select(ByteDoublePredicate predicate) |
double |
updateValue(byte key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
void |
updateValues(ByteDoubleToDoubleFunction function)
Updates the values in-place.
|
default MutableByteDoubleMap |
withAllKeyValues(Iterable<ByteDoublePair> keyValuePairs) |
MutableByteDoubleMap |
withKeyValue(byte key,
double value) |
MutableByteDoubleMap |
withoutAllKeys(ByteIterable keys) |
MutableByteDoubleMap |
withoutKey(byte key) |
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toStringclear, collect, doubleIterator, reject, selectcontainsValue, forEachValue, tap, valuesallSatisfy, 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, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizevoid put(byte key,
double value)
default void putPair(ByteDoublePair keyValuePair)
put(byte, double)void putAll(ByteDoubleMap map)
void updateValues(ByteDoubleToDoubleFunction function)
function - that takes a key and its value and that returns a new value for this keyvoid removeKey(byte key)
void remove(byte key)
double removeKeyIfAbsent(byte key,
double value)
double getIfAbsentPut(byte key,
double value)
double getIfAbsentPut(byte key,
DoubleFunction0 function)
double getIfAbsentPutWithKey(byte key,
ByteToDoubleFunction function)
<P> double getIfAbsentPutWith(byte key,
DoubleFunction<? super P> function,
P parameter)
double updateValue(byte key,
double initialValueIfAbsent,
DoubleToDoubleFunction function)
MutableDoubleByteMap flipUniqueValues()
ByteDoubleMapflipUniqueValues in interface ByteDoubleMapMutableByteDoubleMap select(ByteDoublePredicate predicate)
select in interface ByteDoubleMapMutableByteDoubleMap reject(ByteDoublePredicate predicate)
reject in interface ByteDoubleMapMutableByteDoubleMap withKeyValue(byte key, double value)
MutableByteDoubleMap withoutKey(byte key)
MutableByteDoubleMap withoutAllKeys(ByteIterable keys)
default MutableByteDoubleMap withAllKeyValues(Iterable<ByteDoublePair> keyValuePairs)
MutableByteDoubleMap asUnmodifiable()
MutableByteDoubleMap asSynchronized()
double addToValue(byte key,
double toBeAdded)
Copyright © 2004–2019. All rights reserved.