IntIterable
, IntValuesMap
, MutableIntValuesMap
, PrimitiveIterable
, ShortIntMap
ShortIntHashMap
, SynchronizedShortIntMap
, UnmodifiableShortIntMap
public interface MutableShortIntMap extends ShortIntMap, MutableIntValuesMap
Modifier and Type | Method | Description |
---|---|---|
int |
addToValue(short key,
int toBeAdded) |
|
MutableShortIntMap |
asSynchronized() |
|
MutableShortIntMap |
asUnmodifiable() |
|
MutableIntShortMap |
flipUniqueValues() |
Return the IntShortMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
int |
getIfAbsentPut(short key,
int value) |
|
int |
getIfAbsentPut(short key,
IntFunction0 function) |
|
<P> int |
getIfAbsentPutWith(short key,
IntFunction<? super P> function,
P parameter) |
|
int |
getIfAbsentPutWithKey(short key,
ShortToIntFunction function) |
|
void |
put(short key,
int value) |
|
void |
putAll(ShortIntMap map) |
|
default void |
putPair(ShortIntPair keyValuePair) |
This method allows MutableShortIntMap the ability to add an element in the form of ShortIntPair.
|
MutableShortIntMap |
reject(ShortIntPredicate predicate) |
|
void |
remove(short key) |
|
void |
removeKey(short key) |
|
int |
removeKeyIfAbsent(short key,
int value) |
|
MutableShortIntMap |
select(ShortIntPredicate predicate) |
|
int |
updateValue(short key,
int initialValueIfAbsent,
IntToIntFunction function) |
|
void |
updateValues(ShortIntToIntFunction function) |
Updates the values in-place.
|
default MutableShortIntMap |
withAllKeyValues(Iterable<ShortIntPair> keyValuePairs) |
|
MutableShortIntMap |
withKeyValue(short key,
int value) |
|
MutableShortIntMap |
withoutAllKeys(ShortIterable keys) |
|
MutableShortIntMap |
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, intIterator, 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, int value)
default void putPair(ShortIntPair keyValuePair)
put(short, int)
void putAll(ShortIntMap map)
void updateValues(ShortIntToIntFunction 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)
int removeKeyIfAbsent(short key, int value)
int getIfAbsentPut(short key, int value)
int getIfAbsentPut(short key, IntFunction0 function)
int getIfAbsentPutWithKey(short key, ShortToIntFunction function)
<P> int getIfAbsentPutWith(short key, IntFunction<? super P> function, P parameter)
int updateValue(short key, int initialValueIfAbsent, IntToIntFunction function)
MutableIntShortMap flipUniqueValues()
ShortIntMap
flipUniqueValues
in interface ShortIntMap
MutableShortIntMap select(ShortIntPredicate predicate)
select
in interface ShortIntMap
MutableShortIntMap reject(ShortIntPredicate predicate)
reject
in interface ShortIntMap
MutableShortIntMap withKeyValue(short key, int value)
MutableShortIntMap withoutKey(short key)
MutableShortIntMap withoutAllKeys(ShortIterable keys)
default MutableShortIntMap withAllKeyValues(Iterable<ShortIntPair> keyValuePairs)
MutableShortIntMap asUnmodifiable()
MutableShortIntMap asSynchronized()
int addToValue(short key, int toBeAdded)
Copyright © 2004–2019. All rights reserved.