CharIterable
, CharValuesMap
, MutableCharValuesMap
, PrimitiveIterable
, ShortCharMap
ShortCharHashMap
, SynchronizedShortCharMap
, UnmodifiableShortCharMap
public interface MutableShortCharMap extends ShortCharMap, MutableCharValuesMap
Modifier and Type | Method | Description |
---|---|---|
char |
addToValue(short key,
char toBeAdded) |
|
MutableShortCharMap |
asSynchronized() |
|
MutableShortCharMap |
asUnmodifiable() |
|
MutableCharShortMap |
flipUniqueValues() |
Return the CharShortMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
char |
getIfAbsentPut(short key,
char value) |
|
char |
getIfAbsentPut(short key,
CharFunction0 function) |
|
<P> char |
getIfAbsentPutWith(short key,
CharFunction<? super P> function,
P parameter) |
|
char |
getIfAbsentPutWithKey(short key,
ShortToCharFunction function) |
|
void |
put(short key,
char value) |
|
void |
putAll(ShortCharMap map) |
|
default void |
putPair(ShortCharPair keyValuePair) |
This method allows MutableShortCharMap the ability to add an element in the form of ShortCharPair.
|
MutableShortCharMap |
reject(ShortCharPredicate predicate) |
|
void |
remove(short key) |
|
void |
removeKey(short key) |
|
char |
removeKeyIfAbsent(short key,
char value) |
|
MutableShortCharMap |
select(ShortCharPredicate predicate) |
|
char |
updateValue(short key,
char initialValueIfAbsent,
CharToCharFunction function) |
|
void |
updateValues(ShortCharToCharFunction function) |
Updates the values in-place.
|
default MutableShortCharMap |
withAllKeyValues(Iterable<ShortCharPair> keyValuePairs) |
|
MutableShortCharMap |
withKeyValue(short key,
char value) |
|
MutableShortCharMap |
withoutAllKeys(ShortIterable keys) |
|
MutableShortCharMap |
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
charIterator, clear, collect, 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, char value)
default void putPair(ShortCharPair keyValuePair)
put(short, char)
void putAll(ShortCharMap map)
void updateValues(ShortCharToCharFunction 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)
char removeKeyIfAbsent(short key, char value)
char getIfAbsentPut(short key, char value)
char getIfAbsentPut(short key, CharFunction0 function)
char getIfAbsentPutWithKey(short key, ShortToCharFunction function)
<P> char getIfAbsentPutWith(short key, CharFunction<? super P> function, P parameter)
char updateValue(short key, char initialValueIfAbsent, CharToCharFunction function)
MutableCharShortMap flipUniqueValues()
ShortCharMap
flipUniqueValues
in interface ShortCharMap
MutableShortCharMap select(ShortCharPredicate predicate)
select
in interface ShortCharMap
MutableShortCharMap reject(ShortCharPredicate predicate)
reject
in interface ShortCharMap
MutableShortCharMap withKeyValue(short key, char value)
MutableShortCharMap withoutKey(short key)
MutableShortCharMap withoutAllKeys(ShortIterable keys)
default MutableShortCharMap withAllKeyValues(Iterable<ShortCharPair> keyValuePairs)
MutableShortCharMap asUnmodifiable()
MutableShortCharMap asSynchronized()
char addToValue(short key, char toBeAdded)
Copyright © 2004–2019. All rights reserved.