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