ByteByteMap
, ByteIterable
, ByteValuesMap
, MutableByteValuesMap
, PrimitiveIterable
ByteByteHashMap
, SynchronizedByteByteMap
, UnmodifiableByteByteMap
public interface MutableByteByteMap extends ByteByteMap, MutableByteValuesMap
Modifier and Type | Method | Description |
---|---|---|
byte |
addToValue(byte key,
byte toBeAdded) |
|
MutableByteByteMap |
asSynchronized() |
|
MutableByteByteMap |
asUnmodifiable() |
|
MutableByteByteMap |
flipUniqueValues() |
Return the ByteByteMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
byte |
getIfAbsentPut(byte key,
byte value) |
|
byte |
getIfAbsentPut(byte key,
ByteFunction0 function) |
|
<P> byte |
getIfAbsentPutWith(byte key,
ByteFunction<? super P> function,
P parameter) |
|
byte |
getIfAbsentPutWithKey(byte key,
ByteToByteFunction function) |
|
void |
put(byte key,
byte value) |
|
void |
putAll(ByteByteMap map) |
|
default void |
putPair(ByteBytePair keyValuePair) |
This method allows MutableByteByteMap the ability to add an element in the form of ByteBytePair.
|
MutableByteByteMap |
reject(ByteBytePredicate predicate) |
|
void |
remove(byte key) |
|
void |
removeKey(byte key) |
|
byte |
removeKeyIfAbsent(byte key,
byte value) |
|
MutableByteByteMap |
select(ByteBytePredicate predicate) |
|
byte |
updateValue(byte key,
byte initialValueIfAbsent,
ByteToByteFunction function) |
|
void |
updateValues(ByteByteToByteFunction function) |
Updates the values in-place.
|
default MutableByteByteMap |
withAllKeyValues(Iterable<ByteBytePair> keyValuePairs) |
|
MutableByteByteMap |
withKeyValue(byte key,
byte value) |
|
MutableByteByteMap |
withoutAllKeys(ByteIterable keys) |
|
MutableByteByteMap |
withoutKey(byte 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
byteIterator, clear, collect, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
void put(byte key, byte value)
default void putPair(ByteBytePair keyValuePair)
put(byte, byte)
void putAll(ByteByteMap map)
void updateValues(ByteByteToByteFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(byte key)
void remove(byte key)
byte removeKeyIfAbsent(byte key, byte value)
byte getIfAbsentPut(byte key, byte value)
byte getIfAbsentPut(byte key, ByteFunction0 function)
byte getIfAbsentPutWithKey(byte key, ByteToByteFunction function)
<P> byte getIfAbsentPutWith(byte key, ByteFunction<? super P> function, P parameter)
byte updateValue(byte key, byte initialValueIfAbsent, ByteToByteFunction function)
MutableByteByteMap flipUniqueValues()
ByteByteMap
flipUniqueValues
in interface ByteByteMap
MutableByteByteMap select(ByteBytePredicate predicate)
select
in interface ByteByteMap
MutableByteByteMap reject(ByteBytePredicate predicate)
reject
in interface ByteByteMap
MutableByteByteMap withKeyValue(byte key, byte value)
MutableByteByteMap withoutKey(byte key)
MutableByteByteMap withoutAllKeys(ByteIterable keys)
default MutableByteByteMap withAllKeyValues(Iterable<ByteBytePair> keyValuePairs)
MutableByteByteMap asUnmodifiable()
MutableByteByteMap asSynchronized()
byte addToValue(byte key, byte toBeAdded)
Copyright © 2004–2019. All rights reserved.