ByteIterable
, ByteValuesMap
, MutableByteValuesMap
, PrimitiveIterable
, ShortByteMap
ShortByteHashMap
, SynchronizedShortByteMap
, UnmodifiableShortByteMap
public interface MutableShortByteMap extends ShortByteMap, MutableByteValuesMap
Modifier and Type | Method | Description |
---|---|---|
byte |
addToValue(short key,
byte toBeAdded) |
|
MutableShortByteMap |
asSynchronized() |
|
MutableShortByteMap |
asUnmodifiable() |
|
MutableByteShortMap |
flipUniqueValues() |
Return the ByteShortMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
byte |
getIfAbsentPut(short key,
byte value) |
|
byte |
getIfAbsentPut(short key,
ByteFunction0 function) |
|
<P> byte |
getIfAbsentPutWith(short key,
ByteFunction<? super P> function,
P parameter) |
|
byte |
getIfAbsentPutWithKey(short key,
ShortToByteFunction function) |
|
void |
put(short key,
byte value) |
|
void |
putAll(ShortByteMap map) |
|
default void |
putPair(ShortBytePair keyValuePair) |
This method allows MutableShortByteMap the ability to add an element in the form of ShortBytePair.
|
MutableShortByteMap |
reject(ShortBytePredicate predicate) |
|
void |
remove(short key) |
|
void |
removeKey(short key) |
|
byte |
removeKeyIfAbsent(short key,
byte value) |
|
MutableShortByteMap |
select(ShortBytePredicate predicate) |
|
byte |
updateValue(short key,
byte initialValueIfAbsent,
ByteToByteFunction function) |
|
void |
updateValues(ShortByteToByteFunction function) |
Updates the values in-place.
|
default MutableShortByteMap |
withAllKeyValues(java.lang.Iterable<ShortBytePair> keyValuePairs) |
|
MutableShortByteMap |
withKeyValue(short key,
byte value) |
|
MutableShortByteMap |
withoutAllKeys(ShortIterable keys) |
|
MutableShortByteMap |
withoutKey(short 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
byteIterator, clear, collect, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
void put(short key, byte value)
default void putPair(ShortBytePair keyValuePair)
put(short, byte)
void putAll(ShortByteMap map)
void updateValues(ShortByteToByteFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(short key)
void remove(short key)
byte removeKeyIfAbsent(short key, byte value)
byte getIfAbsentPut(short key, byte value)
byte getIfAbsentPut(short key, ByteFunction0 function)
byte getIfAbsentPutWithKey(short key, ShortToByteFunction function)
<P> byte getIfAbsentPutWith(short key, ByteFunction<? super P> function, P parameter)
byte updateValue(short key, byte initialValueIfAbsent, ByteToByteFunction function)
MutableByteShortMap flipUniqueValues()
ShortByteMap
flipUniqueValues
in interface ShortByteMap
MutableShortByteMap select(ShortBytePredicate predicate)
select
in interface ShortByteMap
MutableShortByteMap reject(ShortBytePredicate predicate)
reject
in interface ShortByteMap
MutableShortByteMap withKeyValue(short key, byte value)
MutableShortByteMap withoutKey(short key)
MutableShortByteMap withoutAllKeys(ShortIterable keys)
default MutableShortByteMap withAllKeyValues(java.lang.Iterable<ShortBytePair> keyValuePairs)
MutableShortByteMap asUnmodifiable()
MutableShortByteMap asSynchronized()
byte addToValue(short key, byte toBeAdded)
Copyright © 2004–2020. All rights reserved.