FloatShortMap
, MutableShortValuesMap
, PrimitiveIterable
, ShortIterable
, ShortValuesMap
FloatShortHashMap
, SynchronizedFloatShortMap
, UnmodifiableFloatShortMap
public interface MutableFloatShortMap extends FloatShortMap, MutableShortValuesMap
Modifier and Type | Method | Description |
---|---|---|
short |
addToValue(float key,
short toBeAdded) |
|
MutableFloatShortMap |
asSynchronized() |
|
MutableFloatShortMap |
asUnmodifiable() |
|
MutableShortFloatMap |
flipUniqueValues() |
Return the ShortFloatMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
short |
getIfAbsentPut(float key,
short value) |
|
short |
getIfAbsentPut(float key,
ShortFunction0 function) |
|
<P> short |
getIfAbsentPutWith(float key,
ShortFunction<? super P> function,
P parameter) |
|
short |
getIfAbsentPutWithKey(float key,
FloatToShortFunction function) |
|
void |
put(float key,
short value) |
|
void |
putAll(FloatShortMap map) |
|
default void |
putPair(FloatShortPair keyValuePair) |
This method allows MutableFloatShortMap the ability to add an element in the form of FloatShortPair.
|
MutableFloatShortMap |
reject(FloatShortPredicate predicate) |
|
void |
remove(float key) |
|
void |
removeKey(float key) |
|
short |
removeKeyIfAbsent(float key,
short value) |
|
MutableFloatShortMap |
select(FloatShortPredicate predicate) |
|
short |
updateValue(float key,
short initialValueIfAbsent,
ShortToShortFunction function) |
|
void |
updateValues(FloatShortToShortFunction function) |
Updates the values in-place.
|
default MutableFloatShortMap |
withAllKeyValues(Iterable<FloatShortPair> keyValuePairs) |
|
MutableFloatShortMap |
withKeyValue(float key,
short value) |
|
MutableFloatShortMap |
withoutAllKeys(FloatIterable keys) |
|
MutableFloatShortMap |
withoutKey(float key) |
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
clear, collect, reject, select, shortIterator
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
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
void put(float key, short value)
default void putPair(FloatShortPair keyValuePair)
put(float, short)
void putAll(FloatShortMap map)
void updateValues(FloatShortToShortFunction 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)
short removeKeyIfAbsent(float key, short value)
short getIfAbsentPut(float key, short value)
short getIfAbsentPut(float key, ShortFunction0 function)
short getIfAbsentPutWithKey(float key, FloatToShortFunction function)
<P> short getIfAbsentPutWith(float key, ShortFunction<? super P> function, P parameter)
short updateValue(float key, short initialValueIfAbsent, ShortToShortFunction function)
MutableShortFloatMap flipUniqueValues()
FloatShortMap
flipUniqueValues
in interface FloatShortMap
MutableFloatShortMap select(FloatShortPredicate predicate)
select
in interface FloatShortMap
MutableFloatShortMap reject(FloatShortPredicate predicate)
reject
in interface FloatShortMap
MutableFloatShortMap withKeyValue(float key, short value)
MutableFloatShortMap withoutKey(float key)
MutableFloatShortMap withoutAllKeys(FloatIterable keys)
default MutableFloatShortMap withAllKeyValues(Iterable<FloatShortPair> keyValuePairs)
MutableFloatShortMap asUnmodifiable()
MutableFloatShortMap asSynchronized()
short addToValue(float key, short toBeAdded)
Copyright © 2004–2019. All rights reserved.