CharIntMap
, IntIterable
, IntValuesMap
, MutableIntValuesMap
, PrimitiveIterable
CharIntHashMap
, SynchronizedCharIntMap
, UnmodifiableCharIntMap
public interface MutableCharIntMap extends CharIntMap, MutableIntValuesMap
Modifier and Type | Method | Description |
---|---|---|
int |
addToValue(char key,
int toBeAdded) |
|
MutableCharIntMap |
asSynchronized() |
|
MutableCharIntMap |
asUnmodifiable() |
|
MutableIntCharMap |
flipUniqueValues() |
Return the IntCharMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
int |
getIfAbsentPut(char key,
int value) |
|
int |
getIfAbsentPut(char key,
IntFunction0 function) |
|
<P> int |
getIfAbsentPutWith(char key,
IntFunction<? super P> function,
P parameter) |
|
int |
getIfAbsentPutWithKey(char key,
CharToIntFunction function) |
|
void |
put(char key,
int value) |
|
void |
putAll(CharIntMap map) |
|
default void |
putPair(CharIntPair keyValuePair) |
This method allows MutableCharIntMap the ability to add an element in the form of CharIntPair.
|
MutableCharIntMap |
reject(CharIntPredicate predicate) |
|
void |
remove(char key) |
|
void |
removeKey(char key) |
|
int |
removeKeyIfAbsent(char key,
int value) |
|
MutableCharIntMap |
select(CharIntPredicate predicate) |
|
int |
updateValue(char key,
int initialValueIfAbsent,
IntToIntFunction function) |
|
void |
updateValues(CharIntToIntFunction function) |
Updates the values in-place.
|
default MutableCharIntMap |
withAllKeyValues(Iterable<CharIntPair> keyValuePairs) |
|
MutableCharIntMap |
withKeyValue(char key,
int value) |
|
MutableCharIntMap |
withoutAllKeys(CharIterable keys) |
|
MutableCharIntMap |
withoutKey(char key) |
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
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
void put(char key, int value)
default void putPair(CharIntPair keyValuePair)
put(char, int)
void putAll(CharIntMap map)
void updateValues(CharIntToIntFunction 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)
int removeKeyIfAbsent(char key, int value)
int getIfAbsentPut(char key, int value)
int getIfAbsentPut(char key, IntFunction0 function)
int getIfAbsentPutWithKey(char key, CharToIntFunction function)
<P> int getIfAbsentPutWith(char key, IntFunction<? super P> function, P parameter)
int updateValue(char key, int initialValueIfAbsent, IntToIntFunction function)
MutableIntCharMap flipUniqueValues()
CharIntMap
flipUniqueValues
in interface CharIntMap
MutableCharIntMap select(CharIntPredicate predicate)
select
in interface CharIntMap
MutableCharIntMap reject(CharIntPredicate predicate)
reject
in interface CharIntMap
MutableCharIntMap withKeyValue(char key, int value)
MutableCharIntMap withoutKey(char key)
MutableCharIntMap withoutAllKeys(CharIterable keys)
default MutableCharIntMap withAllKeyValues(Iterable<CharIntPair> keyValuePairs)
MutableCharIntMap asUnmodifiable()
MutableCharIntMap asSynchronized()
int addToValue(char key, int toBeAdded)
Copyright © 2004–2019. All rights reserved.