FloatIterable
, FloatValuesMap
, LongFloatMap
, MutableFloatValuesMap
, PrimitiveIterable
LongFloatHashMap
, SynchronizedLongFloatMap
, UnmodifiableLongFloatMap
public interface MutableLongFloatMap extends LongFloatMap, MutableFloatValuesMap
Modifier and Type | Method | Description |
---|---|---|
float |
addToValue(long key,
float toBeAdded) |
|
MutableLongFloatMap |
asSynchronized() |
|
MutableLongFloatMap |
asUnmodifiable() |
|
MutableFloatLongMap |
flipUniqueValues() |
Return the FloatLongMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
float |
getIfAbsentPut(long key,
float value) |
|
float |
getIfAbsentPut(long key,
FloatFunction0 function) |
|
<P> float |
getIfAbsentPutWith(long key,
FloatFunction<? super P> function,
P parameter) |
|
float |
getIfAbsentPutWithKey(long key,
LongToFloatFunction function) |
|
void |
put(long key,
float value) |
|
void |
putAll(LongFloatMap map) |
|
default void |
putPair(LongFloatPair keyValuePair) |
This method allows MutableLongFloatMap the ability to add an element in the form of LongFloatPair.
|
MutableLongFloatMap |
reject(LongFloatPredicate predicate) |
|
void |
remove(long key) |
|
void |
removeKey(long key) |
|
float |
removeKeyIfAbsent(long key,
float value) |
|
MutableLongFloatMap |
select(LongFloatPredicate predicate) |
|
float |
updateValue(long key,
float initialValueIfAbsent,
FloatToFloatFunction function) |
|
void |
updateValues(LongFloatToFloatFunction function) |
Updates the values in-place.
|
default MutableLongFloatMap |
withAllKeyValues(Iterable<LongFloatPair> keyValuePairs) |
|
MutableLongFloatMap |
withKeyValue(long key,
float value) |
|
MutableLongFloatMap |
withoutAllKeys(LongIterable keys) |
|
MutableLongFloatMap |
withoutKey(long 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(long key, float value)
default void putPair(LongFloatPair keyValuePair)
put(long, float)
void putAll(LongFloatMap map)
void updateValues(LongFloatToFloatFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(long key)
void remove(long key)
float removeKeyIfAbsent(long key, float value)
float getIfAbsentPut(long key, float value)
float getIfAbsentPut(long key, FloatFunction0 function)
float getIfAbsentPutWithKey(long key, LongToFloatFunction function)
<P> float getIfAbsentPutWith(long key, FloatFunction<? super P> function, P parameter)
float updateValue(long key, float initialValueIfAbsent, FloatToFloatFunction function)
MutableFloatLongMap flipUniqueValues()
LongFloatMap
flipUniqueValues
in interface LongFloatMap
MutableLongFloatMap select(LongFloatPredicate predicate)
select
in interface LongFloatMap
MutableLongFloatMap reject(LongFloatPredicate predicate)
reject
in interface LongFloatMap
MutableLongFloatMap withKeyValue(long key, float value)
MutableLongFloatMap withoutKey(long key)
MutableLongFloatMap withoutAllKeys(LongIterable keys)
default MutableLongFloatMap withAllKeyValues(Iterable<LongFloatPair> keyValuePairs)
MutableLongFloatMap asUnmodifiable()
MutableLongFloatMap asSynchronized()
float addToValue(long key, float toBeAdded)
Copyright © 2004–2019. All rights reserved.