CharIterable
, CharValuesMap
, LongCharMap
, MutableCharValuesMap
, PrimitiveIterable
LongCharHashMap
, SynchronizedLongCharMap
, UnmodifiableLongCharMap
public interface MutableLongCharMap extends LongCharMap, MutableCharValuesMap
Modifier and Type | Method | Description |
---|---|---|
char |
addToValue(long key,
char toBeAdded) |
|
MutableLongCharMap |
asSynchronized() |
|
MutableLongCharMap |
asUnmodifiable() |
|
MutableCharLongMap |
flipUniqueValues() |
Return the CharLongMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
char |
getIfAbsentPut(long key,
char value) |
|
char |
getIfAbsentPut(long key,
CharFunction0 function) |
|
<P> char |
getIfAbsentPutWith(long key,
CharFunction<? super P> function,
P parameter) |
|
char |
getIfAbsentPutWithKey(long key,
LongToCharFunction function) |
|
void |
put(long key,
char value) |
|
void |
putAll(LongCharMap map) |
|
default void |
putPair(LongCharPair keyValuePair) |
This method allows MutableLongCharMap the ability to add an element in the form of LongCharPair.
|
MutableLongCharMap |
reject(LongCharPredicate predicate) |
|
void |
remove(long key) |
|
void |
removeKey(long key) |
|
char |
removeKeyIfAbsent(long key,
char value) |
|
MutableLongCharMap |
select(LongCharPredicate predicate) |
|
char |
updateValue(long key,
char initialValueIfAbsent,
CharToCharFunction function) |
|
void |
updateValues(LongCharToCharFunction function) |
Updates the values in-place.
|
default MutableLongCharMap |
withAllKeyValues(Iterable<LongCharPair> keyValuePairs) |
|
MutableLongCharMap |
withKeyValue(long key,
char value) |
|
MutableLongCharMap |
withoutAllKeys(LongIterable keys) |
|
MutableLongCharMap |
withoutKey(long 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(long key, char value)
default void putPair(LongCharPair keyValuePair)
put(long, char)
void putAll(LongCharMap map)
void updateValues(LongCharToCharFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(long key)
void remove(long key)
char removeKeyIfAbsent(long key, char value)
char getIfAbsentPut(long key, char value)
char getIfAbsentPut(long key, CharFunction0 function)
char getIfAbsentPutWithKey(long key, LongToCharFunction function)
<P> char getIfAbsentPutWith(long key, CharFunction<? super P> function, P parameter)
char updateValue(long key, char initialValueIfAbsent, CharToCharFunction function)
MutableCharLongMap flipUniqueValues()
LongCharMap
flipUniqueValues
in interface LongCharMap
MutableLongCharMap select(LongCharPredicate predicate)
select
in interface LongCharMap
MutableLongCharMap reject(LongCharPredicate predicate)
reject
in interface LongCharMap
MutableLongCharMap withKeyValue(long key, char value)
MutableLongCharMap withoutKey(long key)
MutableLongCharMap withoutAllKeys(LongIterable keys)
default MutableLongCharMap withAllKeyValues(Iterable<LongCharPair> keyValuePairs)
MutableLongCharMap asUnmodifiable()
MutableLongCharMap asSynchronized()
char addToValue(long key, char toBeAdded)
Copyright © 2004–2019. All rights reserved.