DoubleFloatMap, FloatIterable, FloatValuesMap, MutableFloatValuesMap, PrimitiveIterableDoubleFloatHashMap, SynchronizedDoubleFloatMap, UnmodifiableDoubleFloatMappublic interface MutableDoubleFloatMap extends DoubleFloatMap, MutableFloatValuesMap
| Modifier and Type | Method | Description |
|---|---|---|
float |
addToValue(double key,
float toBeAdded) |
|
MutableDoubleFloatMap |
asSynchronized() |
|
MutableDoubleFloatMap |
asUnmodifiable() |
|
MutableFloatDoubleMap |
flipUniqueValues() |
Return the FloatDoubleMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
float |
getIfAbsentPut(double key,
float value) |
|
float |
getIfAbsentPut(double key,
FloatFunction0 function) |
|
<P> float |
getIfAbsentPutWith(double key,
FloatFunction<? super P> function,
P parameter) |
|
float |
getIfAbsentPutWithKey(double key,
DoubleToFloatFunction function) |
|
void |
put(double key,
float value) |
|
void |
putAll(DoubleFloatMap map) |
|
default void |
putPair(DoubleFloatPair keyValuePair) |
This method allows MutableDoubleFloatMap the ability to add an element in the form of DoubleFloatPair.
|
MutableDoubleFloatMap |
reject(DoubleFloatPredicate predicate) |
|
void |
remove(double key) |
|
void |
removeKey(double key) |
|
float |
removeKeyIfAbsent(double key,
float value) |
|
MutableDoubleFloatMap |
select(DoubleFloatPredicate predicate) |
|
float |
updateValue(double key,
float initialValueIfAbsent,
FloatToFloatFunction function) |
|
void |
updateValues(DoubleFloatToFloatFunction function) |
Updates the values in-place.
|
default MutableDoubleFloatMap |
withAllKeyValues(Iterable<DoubleFloatPair> keyValuePairs) |
|
MutableDoubleFloatMap |
withKeyValue(double key,
float value) |
|
MutableDoubleFloatMap |
withoutAllKeys(DoubleIterable keys) |
|
MutableDoubleFloatMap |
withoutKey(double key) |
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toStringallSatisfy, 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, floatIterator, reject, selectappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizevoid put(double key,
float value)
default void putPair(DoubleFloatPair keyValuePair)
put(double, float)void putAll(DoubleFloatMap map)
void updateValues(DoubleFloatToFloatFunction 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)
float removeKeyIfAbsent(double key,
float value)
float getIfAbsentPut(double key,
float value)
float getIfAbsentPut(double key,
FloatFunction0 function)
float getIfAbsentPutWithKey(double key,
DoubleToFloatFunction function)
<P> float getIfAbsentPutWith(double key,
FloatFunction<? super P> function,
P parameter)
float updateValue(double key,
float initialValueIfAbsent,
FloatToFloatFunction function)
MutableFloatDoubleMap flipUniqueValues()
DoubleFloatMapflipUniqueValues in interface DoubleFloatMapMutableDoubleFloatMap select(DoubleFloatPredicate predicate)
select in interface DoubleFloatMapMutableDoubleFloatMap reject(DoubleFloatPredicate predicate)
reject in interface DoubleFloatMapMutableDoubleFloatMap withKeyValue(double key, float value)
MutableDoubleFloatMap withoutKey(double key)
MutableDoubleFloatMap withoutAllKeys(DoubleIterable keys)
default MutableDoubleFloatMap withAllKeyValues(Iterable<DoubleFloatPair> keyValuePairs)
MutableDoubleFloatMap asUnmodifiable()
MutableDoubleFloatMap asSynchronized()
float addToValue(double key,
float toBeAdded)
Copyright © 2004–2019. All rights reserved.