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