IntShortMap
, MutableShortValuesMap
, PrimitiveIterable
, ShortIterable
, ShortValuesMap
IntShortHashMap
, SynchronizedIntShortMap
, UnmodifiableIntShortMap
public interface MutableIntShortMap extends IntShortMap, MutableShortValuesMap
Modifier and Type | Method | Description |
---|---|---|
short |
addToValue(int key,
short toBeAdded) |
|
MutableIntShortMap |
asSynchronized() |
|
MutableIntShortMap |
asUnmodifiable() |
|
MutableShortIntMap |
flipUniqueValues() |
Return the ShortIntMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
short |
getIfAbsentPut(int key,
short value) |
|
short |
getIfAbsentPut(int key,
ShortFunction0 function) |
|
<P> short |
getIfAbsentPutWith(int key,
ShortFunction<? super P> function,
P parameter) |
|
short |
getIfAbsentPutWithKey(int key,
IntToShortFunction function) |
|
void |
put(int key,
short value) |
|
void |
putAll(IntShortMap map) |
|
default void |
putPair(IntShortPair keyValuePair) |
This method allows MutableIntShortMap the ability to add an element in the form of IntShortPair.
|
MutableIntShortMap |
reject(IntShortPredicate predicate) |
|
void |
remove(int key) |
|
void |
removeKey(int key) |
|
short |
removeKeyIfAbsent(int key,
short value) |
|
MutableIntShortMap |
select(IntShortPredicate predicate) |
|
short |
updateValue(int key,
short initialValueIfAbsent,
ShortToShortFunction function) |
|
void |
updateValues(IntShortToShortFunction function) |
Updates the values in-place.
|
default MutableIntShortMap |
withAllKeyValues(Iterable<IntShortPair> keyValuePairs) |
|
MutableIntShortMap |
withKeyValue(int key,
short value) |
|
MutableIntShortMap |
withoutAllKeys(IntIterable keys) |
|
MutableIntShortMap |
withoutKey(int 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(int key, short value)
default void putPair(IntShortPair keyValuePair)
put(int, short)
void putAll(IntShortMap map)
void updateValues(IntShortToShortFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(int key)
void remove(int key)
short removeKeyIfAbsent(int key, short value)
short getIfAbsentPut(int key, short value)
short getIfAbsentPut(int key, ShortFunction0 function)
short getIfAbsentPutWithKey(int key, IntToShortFunction function)
<P> short getIfAbsentPutWith(int key, ShortFunction<? super P> function, P parameter)
short updateValue(int key, short initialValueIfAbsent, ShortToShortFunction function)
MutableShortIntMap flipUniqueValues()
IntShortMap
flipUniqueValues
in interface IntShortMap
MutableIntShortMap select(IntShortPredicate predicate)
select
in interface IntShortMap
MutableIntShortMap reject(IntShortPredicate predicate)
reject
in interface IntShortMap
MutableIntShortMap withKeyValue(int key, short value)
MutableIntShortMap withoutKey(int key)
MutableIntShortMap withoutAllKeys(IntIterable keys)
default MutableIntShortMap withAllKeyValues(Iterable<IntShortPair> keyValuePairs)
MutableIntShortMap asUnmodifiable()
MutableIntShortMap asSynchronized()
short addToValue(int key, short toBeAdded)
Copyright © 2004–2019. All rights reserved.