public interface MutableCharLongMap extends CharLongMap, MutableLongValuesMap
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(char key,
long toBeAdded) |
MutableCharLongMap |
asSynchronized() |
MutableCharLongMap |
asUnmodifiable() |
MutableLongCharMap |
flipUniqueValues()
Return the LongCharMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
long |
getIfAbsentPut(char key,
long value) |
long |
getIfAbsentPut(char key,
LongFunction0 function) |
<P> long |
getIfAbsentPutWith(char key,
LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(char key,
CharToLongFunction function) |
void |
put(char key,
long value) |
void |
putAll(CharLongMap map) |
default void |
putPair(CharLongPair keyValuePair)
This method allows MutableCharLongMap the ability to add an element in the form of CharLongPair.
|
MutableCharLongMap |
reject(CharLongPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
long |
removeKeyIfAbsent(char key,
long value) |
MutableCharLongMap |
select(CharLongPredicate predicate) |
long |
updateValue(char key,
long initialValueIfAbsent,
LongToLongFunction function) |
void |
updateValues(CharLongToLongFunction function)
Updates the values in-place.
|
default MutableCharLongMap |
withAllKeyValues(Iterable<CharLongPair> keyValuePairs) |
MutableCharLongMap |
withKeyValue(char key,
long value) |
MutableCharLongMap |
withoutAllKeys(CharIterable keys) |
MutableCharLongMap |
withoutKey(char key) |
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toStringclear, collect, longIterator, reject, selectcontainsValue, forEachValue, tap, valuesallSatisfy, 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, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizevoid put(char key,
long value)
default void putPair(CharLongPair keyValuePair)
put(char, long)void putAll(CharLongMap map)
void updateValues(CharLongToLongFunction 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)
long removeKeyIfAbsent(char key,
long value)
long getIfAbsentPut(char key,
long value)
long getIfAbsentPut(char key,
LongFunction0 function)
long getIfAbsentPutWithKey(char key,
CharToLongFunction function)
<P> long getIfAbsentPutWith(char key,
LongFunction<? super P> function,
P parameter)
long updateValue(char key,
long initialValueIfAbsent,
LongToLongFunction function)
MutableLongCharMap flipUniqueValues()
CharLongMapflipUniqueValues in interface CharLongMapMutableCharLongMap select(CharLongPredicate predicate)
select in interface CharLongMapMutableCharLongMap reject(CharLongPredicate predicate)
reject in interface CharLongMapMutableCharLongMap withKeyValue(char key, long value)
MutableCharLongMap withoutKey(char key)
MutableCharLongMap withoutAllKeys(CharIterable keys)
default MutableCharLongMap withAllKeyValues(Iterable<CharLongPair> keyValuePairs)
MutableCharLongMap asUnmodifiable()
MutableCharLongMap asSynchronized()
long addToValue(char key,
long toBeAdded)
Copyright © 2004–2019. All rights reserved.