CharFloatMap
, FloatIterable
, FloatValuesMap
, MutableFloatValuesMap
, PrimitiveIterable
CharFloatHashMap
, SynchronizedCharFloatMap
, UnmodifiableCharFloatMap
public interface MutableCharFloatMap extends CharFloatMap, MutableFloatValuesMap
Modifier and Type | Method | Description |
---|---|---|
float |
addToValue(char key,
float toBeAdded) |
|
MutableCharFloatMap |
asSynchronized() |
|
MutableCharFloatMap |
asUnmodifiable() |
|
MutableFloatCharMap |
flipUniqueValues() |
Return the FloatCharMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
float |
getIfAbsentPut(char key,
float value) |
|
float |
getIfAbsentPut(char key,
FloatFunction0 function) |
|
<P> float |
getIfAbsentPutWith(char key,
FloatFunction<? super P> function,
P parameter) |
|
float |
getIfAbsentPutWithKey(char key,
CharToFloatFunction function) |
|
void |
put(char key,
float value) |
|
void |
putAll(CharFloatMap map) |
|
default void |
putPair(CharFloatPair keyValuePair) |
This method allows MutableCharFloatMap the ability to add an element in the form of CharFloatPair.
|
MutableCharFloatMap |
reject(CharFloatPredicate predicate) |
|
void |
remove(char key) |
|
void |
removeKey(char key) |
|
float |
removeKeyIfAbsent(char key,
float value) |
|
MutableCharFloatMap |
select(CharFloatPredicate predicate) |
|
float |
updateValue(char key,
float initialValueIfAbsent,
FloatToFloatFunction function) |
|
void |
updateValues(CharFloatToFloatFunction function) |
Updates the values in-place.
|
default MutableCharFloatMap |
withAllKeyValues(Iterable<CharFloatPair> keyValuePairs) |
|
MutableCharFloatMap |
withKeyValue(char key,
float value) |
|
MutableCharFloatMap |
withoutAllKeys(CharIterable keys) |
|
MutableCharFloatMap |
withoutKey(char key) |
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
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, floatIterator, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
void put(char key, float value)
default void putPair(CharFloatPair keyValuePair)
put(char, float)
void putAll(CharFloatMap map)
void updateValues(CharFloatToFloatFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(char key)
void remove(char key)
float removeKeyIfAbsent(char key, float value)
float getIfAbsentPut(char key, float value)
float getIfAbsentPut(char key, FloatFunction0 function)
float getIfAbsentPutWithKey(char key, CharToFloatFunction function)
<P> float getIfAbsentPutWith(char key, FloatFunction<? super P> function, P parameter)
float updateValue(char key, float initialValueIfAbsent, FloatToFloatFunction function)
MutableFloatCharMap flipUniqueValues()
CharFloatMap
flipUniqueValues
in interface CharFloatMap
MutableCharFloatMap select(CharFloatPredicate predicate)
select
in interface CharFloatMap
MutableCharFloatMap reject(CharFloatPredicate predicate)
reject
in interface CharFloatMap
MutableCharFloatMap withKeyValue(char key, float value)
MutableCharFloatMap withoutKey(char key)
MutableCharFloatMap withoutAllKeys(CharIterable keys)
default MutableCharFloatMap withAllKeyValues(Iterable<CharFloatPair> keyValuePairs)
MutableCharFloatMap asUnmodifiable()
MutableCharFloatMap asSynchronized()
float addToValue(char key, float toBeAdded)
Copyright © 2004–2019. All rights reserved.