ByteIterable
, ByteValuesMap
, CharByteMap
, MutableByteValuesMap
, PrimitiveIterable
CharByteHashMap
, SynchronizedCharByteMap
, UnmodifiableCharByteMap
public interface MutableCharByteMap extends CharByteMap, MutableByteValuesMap
Modifier and Type | Method | Description |
---|---|---|
byte |
addToValue(char key,
byte toBeAdded) |
|
MutableCharByteMap |
asSynchronized() |
|
MutableCharByteMap |
asUnmodifiable() |
|
MutableByteCharMap |
flipUniqueValues() |
Return the ByteCharMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
byte |
getIfAbsentPut(char key,
byte value) |
|
byte |
getIfAbsentPut(char key,
ByteFunction0 function) |
|
<P> byte |
getIfAbsentPutWith(char key,
ByteFunction<? super P> function,
P parameter) |
|
byte |
getIfAbsentPutWithKey(char key,
CharToByteFunction function) |
|
void |
put(char key,
byte value) |
|
void |
putAll(CharByteMap map) |
|
default void |
putPair(CharBytePair keyValuePair) |
This method allows MutableCharByteMap the ability to add an element in the form of CharBytePair.
|
MutableCharByteMap |
reject(CharBytePredicate predicate) |
|
void |
remove(char key) |
|
void |
removeKey(char key) |
|
byte |
removeKeyIfAbsent(char key,
byte value) |
|
MutableCharByteMap |
select(CharBytePredicate predicate) |
|
byte |
updateValue(char key,
byte initialValueIfAbsent,
ByteToByteFunction function) |
|
void |
updateValues(CharByteToByteFunction function) |
Updates the values in-place.
|
default MutableCharByteMap |
withAllKeyValues(Iterable<CharBytePair> keyValuePairs) |
|
MutableCharByteMap |
withKeyValue(char key,
byte value) |
|
MutableCharByteMap |
withoutAllKeys(CharIterable keys) |
|
MutableCharByteMap |
withoutKey(char 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
byteIterator, clear, collect, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
void put(char key, byte value)
default void putPair(CharBytePair keyValuePair)
put(char, byte)
void putAll(CharByteMap map)
void updateValues(CharByteToByteFunction 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)
byte removeKeyIfAbsent(char key, byte value)
byte getIfAbsentPut(char key, byte value)
byte getIfAbsentPut(char key, ByteFunction0 function)
byte getIfAbsentPutWithKey(char key, CharToByteFunction function)
<P> byte getIfAbsentPutWith(char key, ByteFunction<? super P> function, P parameter)
byte updateValue(char key, byte initialValueIfAbsent, ByteToByteFunction function)
MutableByteCharMap flipUniqueValues()
CharByteMap
flipUniqueValues
in interface CharByteMap
MutableCharByteMap select(CharBytePredicate predicate)
select
in interface CharByteMap
MutableCharByteMap reject(CharBytePredicate predicate)
reject
in interface CharByteMap
MutableCharByteMap withKeyValue(char key, byte value)
MutableCharByteMap withoutKey(char key)
MutableCharByteMap withoutAllKeys(CharIterable keys)
default MutableCharByteMap withAllKeyValues(Iterable<CharBytePair> keyValuePairs)
MutableCharByteMap asUnmodifiable()
MutableCharByteMap asSynchronized()
byte addToValue(char key, byte toBeAdded)
Copyright © 2004–2019. All rights reserved.