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