CharIterable
, CharValuesMap
, IntCharMap
, MutableCharValuesMap
, PrimitiveIterable
IntCharHashMap
, SynchronizedIntCharMap
, UnmodifiableIntCharMap
public interface MutableIntCharMap extends IntCharMap, MutableCharValuesMap
Modifier and Type | Method | Description |
---|---|---|
char |
addToValue(int key,
char toBeAdded) |
|
MutableIntCharMap |
asSynchronized() |
|
MutableIntCharMap |
asUnmodifiable() |
|
MutableCharIntMap |
flipUniqueValues() |
Return the CharIntMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
char |
getIfAbsentPut(int key,
char value) |
|
char |
getIfAbsentPut(int key,
CharFunction0 function) |
|
<P> char |
getIfAbsentPutWith(int key,
CharFunction<? super P> function,
P parameter) |
|
char |
getIfAbsentPutWithKey(int key,
IntToCharFunction function) |
|
void |
put(int key,
char value) |
|
void |
putAll(IntCharMap map) |
|
default void |
putPair(IntCharPair keyValuePair) |
This method allows MutableIntCharMap the ability to add an element in the form of IntCharPair.
|
MutableIntCharMap |
reject(IntCharPredicate predicate) |
|
void |
remove(int key) |
|
void |
removeKey(int key) |
|
char |
removeKeyIfAbsent(int key,
char value) |
|
MutableIntCharMap |
select(IntCharPredicate predicate) |
|
char |
updateValue(int key,
char initialValueIfAbsent,
CharToCharFunction function) |
|
void |
updateValues(IntCharToCharFunction function) |
Updates the values in-place.
|
default MutableIntCharMap |
withAllKeyValues(Iterable<IntCharPair> keyValuePairs) |
|
MutableIntCharMap |
withKeyValue(int key,
char value) |
|
MutableIntCharMap |
withoutAllKeys(IntIterable keys) |
|
MutableIntCharMap |
withoutKey(int 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
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
charIterator, clear, collect, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
void put(int key, char value)
default void putPair(IntCharPair keyValuePair)
put(int, char)
void putAll(IntCharMap map)
void updateValues(IntCharToCharFunction 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)
char removeKeyIfAbsent(int key, char value)
char getIfAbsentPut(int key, char value)
char getIfAbsentPut(int key, CharFunction0 function)
char getIfAbsentPutWithKey(int key, IntToCharFunction function)
<P> char getIfAbsentPutWith(int key, CharFunction<? super P> function, P parameter)
char updateValue(int key, char initialValueIfAbsent, CharToCharFunction function)
MutableCharIntMap flipUniqueValues()
IntCharMap
flipUniqueValues
in interface IntCharMap
MutableIntCharMap select(IntCharPredicate predicate)
select
in interface IntCharMap
MutableIntCharMap reject(IntCharPredicate predicate)
reject
in interface IntCharMap
MutableIntCharMap withKeyValue(int key, char value)
MutableIntCharMap withoutKey(int key)
MutableIntCharMap withoutAllKeys(IntIterable keys)
default MutableIntCharMap withAllKeyValues(Iterable<IntCharPair> keyValuePairs)
MutableIntCharMap asUnmodifiable()
MutableIntCharMap asSynchronized()
char addToValue(int key, char toBeAdded)
Copyright © 2004–2019. All rights reserved.