MutableShortValuesMap
, PrimitiveIterable
, ShortIterable
, ShortShortMap
, ShortValuesMap
ShortShortHashMap
, SynchronizedShortShortMap
, UnmodifiableShortShortMap
public interface MutableShortShortMap extends ShortShortMap, MutableShortValuesMap
Modifier and Type | Method | Description |
---|---|---|
short |
addToValue(short key,
short toBeAdded) |
|
MutableShortShortMap |
asSynchronized() |
|
MutableShortShortMap |
asUnmodifiable() |
|
MutableShortShortMap |
flipUniqueValues() |
Return the ShortShortMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
short |
getIfAbsentPut(short key,
short value) |
|
short |
getIfAbsentPut(short key,
ShortFunction0 function) |
|
<P> short |
getIfAbsentPutWith(short key,
ShortFunction<? super P> function,
P parameter) |
|
short |
getIfAbsentPutWithKey(short key,
ShortToShortFunction function) |
|
void |
put(short key,
short value) |
|
void |
putAll(ShortShortMap map) |
|
default void |
putPair(ShortShortPair keyValuePair) |
This method allows MutableShortShortMap the ability to add an element in the form of ShortShortPair.
|
MutableShortShortMap |
reject(ShortShortPredicate predicate) |
|
void |
remove(short key) |
|
void |
removeKey(short key) |
|
short |
removeKeyIfAbsent(short key,
short value) |
|
MutableShortShortMap |
select(ShortShortPredicate predicate) |
|
short |
updateValue(short key,
short initialValueIfAbsent,
ShortToShortFunction function) |
|
void |
updateValues(ShortShortToShortFunction function) |
Updates the values in-place.
|
default MutableShortShortMap |
withAllKeyValues(Iterable<ShortShortPair> keyValuePairs) |
|
MutableShortShortMap |
withKeyValue(short key,
short value) |
|
MutableShortShortMap |
withoutAllKeys(ShortIterable keys) |
|
MutableShortShortMap |
withoutKey(short key) |
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
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
containsValue, forEachValue, tap, values
void put(short key, short value)
default void putPair(ShortShortPair keyValuePair)
put(short, short)
void putAll(ShortShortMap map)
void updateValues(ShortShortToShortFunction 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)
short removeKeyIfAbsent(short key, short value)
short getIfAbsentPut(short key, short value)
short getIfAbsentPut(short key, ShortFunction0 function)
short getIfAbsentPutWithKey(short key, ShortToShortFunction function)
<P> short getIfAbsentPutWith(short key, ShortFunction<? super P> function, P parameter)
short updateValue(short key, short initialValueIfAbsent, ShortToShortFunction function)
MutableShortShortMap flipUniqueValues()
ShortShortMap
flipUniqueValues
in interface ShortShortMap
MutableShortShortMap select(ShortShortPredicate predicate)
select
in interface ShortShortMap
MutableShortShortMap reject(ShortShortPredicate predicate)
reject
in interface ShortShortMap
MutableShortShortMap withKeyValue(short key, short value)
MutableShortShortMap withoutKey(short key)
MutableShortShortMap withoutAllKeys(ShortIterable keys)
default MutableShortShortMap withAllKeyValues(Iterable<ShortShortPair> keyValuePairs)
MutableShortShortMap asUnmodifiable()
MutableShortShortMap asSynchronized()
short addToValue(short key, short toBeAdded)
Copyright © 2004–2019. All rights reserved.