LongShortMap, MutableShortValuesMap, PrimitiveIterable, ShortIterable, ShortValuesMapLongShortHashMap, SynchronizedLongShortMap, UnmodifiableLongShortMappublic interface MutableLongShortMap extends LongShortMap, MutableShortValuesMap
| Modifier and Type | Method | Description |
|---|---|---|
short |
addToValue(long key,
short toBeAdded) |
|
MutableLongShortMap |
asSynchronized() |
|
MutableLongShortMap |
asUnmodifiable() |
|
MutableShortLongMap |
flipUniqueValues() |
Return the ShortLongMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
short |
getIfAbsentPut(long key,
short value) |
|
short |
getIfAbsentPut(long key,
ShortFunction0 function) |
|
<P> short |
getIfAbsentPutWith(long key,
ShortFunction<? super P> function,
P parameter) |
|
short |
getIfAbsentPutWithKey(long key,
LongToShortFunction function) |
|
void |
put(long key,
short value) |
|
void |
putAll(LongShortMap map) |
|
default void |
putPair(LongShortPair keyValuePair) |
This method allows MutableLongShortMap the ability to add an element in the form of LongShortPair.
|
MutableLongShortMap |
reject(LongShortPredicate predicate) |
|
void |
remove(long key) |
|
void |
removeKey(long key) |
|
short |
removeKeyIfAbsent(long key,
short value) |
|
MutableLongShortMap |
select(LongShortPredicate predicate) |
|
short |
updateValue(long key,
short initialValueIfAbsent,
ShortToShortFunction function) |
|
void |
updateValues(LongShortToShortFunction function) |
Updates the values in-place.
|
default MutableLongShortMap |
withAllKeyValues(java.lang.Iterable<LongShortPair> keyValuePairs) |
|
MutableLongShortMap |
withKeyValue(long key,
short value) |
|
MutableLongShortMap |
withoutAllKeys(LongIterable keys) |
|
MutableLongShortMap |
withoutKey(long key) |
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toStringclear, collect, reject, select, shortIteratorappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeallSatisfy, 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, toSortedListcontainsValue, forEachValue, tap, valuesvoid put(long key,
short value)
default void putPair(LongShortPair keyValuePair)
put(long, short)void putAll(LongShortMap map)
void updateValues(LongShortToShortFunction 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)
short removeKeyIfAbsent(long key,
short value)
short getIfAbsentPut(long key,
short value)
short getIfAbsentPut(long key,
ShortFunction0 function)
short getIfAbsentPutWithKey(long key,
LongToShortFunction function)
<P> short getIfAbsentPutWith(long key,
ShortFunction<? super P> function,
P parameter)
short updateValue(long key,
short initialValueIfAbsent,
ShortToShortFunction function)
MutableShortLongMap flipUniqueValues()
LongShortMapflipUniqueValues in interface LongShortMapMutableLongShortMap select(LongShortPredicate predicate)
select in interface LongShortMapMutableLongShortMap reject(LongShortPredicate predicate)
reject in interface LongShortMapMutableLongShortMap withKeyValue(long key, short value)
MutableLongShortMap withoutKey(long key)
MutableLongShortMap withoutAllKeys(LongIterable keys)
default MutableLongShortMap withAllKeyValues(java.lang.Iterable<LongShortPair> keyValuePairs)
MutableLongShortMap asUnmodifiable()
MutableLongShortMap asSynchronized()
short addToValue(long key,
short toBeAdded)
Copyright © 2004–2020. All rights reserved.