FloatLongMap
, LongIterable
, LongValuesMap
, MutableLongValuesMap
, PrimitiveIterable
FloatLongHashMap
, SynchronizedFloatLongMap
, UnmodifiableFloatLongMap
public interface MutableFloatLongMap extends FloatLongMap, MutableLongValuesMap
Modifier and Type | Method | Description |
---|---|---|
long |
addToValue(float key,
long toBeAdded) |
|
MutableFloatLongMap |
asSynchronized() |
|
MutableFloatLongMap |
asUnmodifiable() |
|
MutableLongFloatMap |
flipUniqueValues() |
Return the LongFloatMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
long |
getIfAbsentPut(float key,
long value) |
|
long |
getIfAbsentPut(float key,
LongFunction0 function) |
|
<P> long |
getIfAbsentPutWith(float key,
LongFunction<? super P> function,
P parameter) |
|
long |
getIfAbsentPutWithKey(float key,
FloatToLongFunction function) |
|
void |
put(float key,
long value) |
|
void |
putAll(FloatLongMap map) |
|
default void |
putPair(FloatLongPair keyValuePair) |
This method allows MutableFloatLongMap the ability to add an element in the form of FloatLongPair.
|
MutableFloatLongMap |
reject(FloatLongPredicate predicate) |
|
void |
remove(float key) |
|
void |
removeKey(float key) |
|
long |
removeKeyIfAbsent(float key,
long value) |
|
MutableFloatLongMap |
select(FloatLongPredicate predicate) |
|
long |
updateValue(float key,
long initialValueIfAbsent,
LongToLongFunction function) |
|
void |
updateValues(FloatLongToLongFunction function) |
Updates the values in-place.
|
default MutableFloatLongMap |
withAllKeyValues(Iterable<FloatLongPair> keyValuePairs) |
|
MutableFloatLongMap |
withKeyValue(float key,
long value) |
|
MutableFloatLongMap |
withoutAllKeys(FloatIterable keys) |
|
MutableFloatLongMap |
withoutKey(float 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, longIterator, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
void put(float key, long value)
default void putPair(FloatLongPair keyValuePair)
put(float, long)
void putAll(FloatLongMap map)
void updateValues(FloatLongToLongFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(float key)
void remove(float key)
long removeKeyIfAbsent(float key, long value)
long getIfAbsentPut(float key, long value)
long getIfAbsentPut(float key, LongFunction0 function)
long getIfAbsentPutWithKey(float key, FloatToLongFunction function)
<P> long getIfAbsentPutWith(float key, LongFunction<? super P> function, P parameter)
long updateValue(float key, long initialValueIfAbsent, LongToLongFunction function)
MutableLongFloatMap flipUniqueValues()
FloatLongMap
flipUniqueValues
in interface FloatLongMap
MutableFloatLongMap select(FloatLongPredicate predicate)
select
in interface FloatLongMap
MutableFloatLongMap reject(FloatLongPredicate predicate)
reject
in interface FloatLongMap
MutableFloatLongMap withKeyValue(float key, long value)
MutableFloatLongMap withoutKey(float key)
MutableFloatLongMap withoutAllKeys(FloatIterable keys)
default MutableFloatLongMap withAllKeyValues(Iterable<FloatLongPair> keyValuePairs)
MutableFloatLongMap asUnmodifiable()
MutableFloatLongMap asSynchronized()
long addToValue(float key, long toBeAdded)
Copyright © 2004–2019. All rights reserved.