LongIterable
, LongValuesMap
, MutableLongValuesMap
, PrimitiveIterable
, ShortLongMap
ShortLongHashMap
, SynchronizedShortLongMap
, UnmodifiableShortLongMap
public interface MutableShortLongMap extends ShortLongMap, MutableLongValuesMap
Modifier and Type | Method | Description |
---|---|---|
long |
addToValue(short key,
long toBeAdded) |
|
MutableShortLongMap |
asSynchronized() |
|
MutableShortLongMap |
asUnmodifiable() |
|
MutableLongShortMap |
flipUniqueValues() |
Return the LongShortMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
long |
getIfAbsentPut(short key,
long value) |
|
long |
getIfAbsentPut(short key,
LongFunction0 function) |
|
<P> long |
getIfAbsentPutWith(short key,
LongFunction<? super P> function,
P parameter) |
|
long |
getIfAbsentPutWithKey(short key,
ShortToLongFunction function) |
|
void |
put(short key,
long value) |
|
void |
putAll(ShortLongMap map) |
|
default void |
putPair(ShortLongPair keyValuePair) |
This method allows MutableShortLongMap the ability to add an element in the form of ShortLongPair.
|
MutableShortLongMap |
reject(ShortLongPredicate predicate) |
|
void |
remove(short key) |
|
void |
removeKey(short key) |
|
long |
removeKeyIfAbsent(short key,
long value) |
|
MutableShortLongMap |
select(ShortLongPredicate predicate) |
|
long |
updateValue(short key,
long initialValueIfAbsent,
LongToLongFunction function) |
|
void |
updateValues(ShortLongToLongFunction function) |
Updates the values in-place.
|
default MutableShortLongMap |
withAllKeyValues(Iterable<ShortLongPair> keyValuePairs) |
|
MutableShortLongMap |
withKeyValue(short key,
long value) |
|
MutableShortLongMap |
withoutAllKeys(ShortIterable keys) |
|
MutableShortLongMap |
withoutKey(short 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
clear, collect, longIterator, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
void put(short key, long value)
default void putPair(ShortLongPair keyValuePair)
put(short, long)
void putAll(ShortLongMap map)
void updateValues(ShortLongToLongFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(short key)
void remove(short key)
long removeKeyIfAbsent(short key, long value)
long getIfAbsentPut(short key, long value)
long getIfAbsentPut(short key, LongFunction0 function)
long getIfAbsentPutWithKey(short key, ShortToLongFunction function)
<P> long getIfAbsentPutWith(short key, LongFunction<? super P> function, P parameter)
long updateValue(short key, long initialValueIfAbsent, LongToLongFunction function)
MutableLongShortMap flipUniqueValues()
ShortLongMap
flipUniqueValues
in interface ShortLongMap
MutableShortLongMap select(ShortLongPredicate predicate)
select
in interface ShortLongMap
MutableShortLongMap reject(ShortLongPredicate predicate)
reject
in interface ShortLongMap
MutableShortLongMap withKeyValue(short key, long value)
MutableShortLongMap withoutKey(short key)
MutableShortLongMap withoutAllKeys(ShortIterable keys)
default MutableShortLongMap withAllKeyValues(Iterable<ShortLongPair> keyValuePairs)
MutableShortLongMap asUnmodifiable()
MutableShortLongMap asSynchronized()
long addToValue(short key, long toBeAdded)
Copyright © 2004–2019. All rights reserved.