public interface MutableByteLongMap extends ByteLongMap, MutableLongValuesMap
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(byte key,
long toBeAdded) |
MutableByteLongMap |
asSynchronized() |
MutableByteLongMap |
asUnmodifiable() |
MutableLongByteMap |
flipUniqueValues()
Return the LongByteMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
long |
getIfAbsentPut(byte key,
long value) |
long |
getIfAbsentPut(byte key,
LongFunction0 function) |
<P> long |
getIfAbsentPutWith(byte key,
LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(byte key,
ByteToLongFunction function) |
void |
put(byte key,
long value) |
void |
putAll(ByteLongMap map) |
default void |
putPair(ByteLongPair keyValuePair)
This method allows MutableByteLongMap the ability to add an element in the form of ByteLongPair.
|
MutableByteLongMap |
reject(ByteLongPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
long |
removeKeyIfAbsent(byte key,
long value) |
MutableByteLongMap |
select(ByteLongPredicate predicate) |
long |
updateValue(byte key,
long initialValueIfAbsent,
LongToLongFunction function) |
void |
updateValues(ByteLongToLongFunction function)
Updates the values in-place.
|
default MutableByteLongMap |
withAllKeyValues(Iterable<ByteLongPair> keyValuePairs) |
MutableByteLongMap |
withKeyValue(byte key,
long value) |
MutableByteLongMap |
withoutAllKeys(ByteIterable keys) |
MutableByteLongMap |
withoutKey(byte key) |
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toStringclear, collect, longIterator, reject, selectcontainsValue, forEachValue, tap, valuesallSatisfy, 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, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizevoid put(byte key,
long value)
default void putPair(ByteLongPair keyValuePair)
put(byte, long)void putAll(ByteLongMap map)
void updateValues(ByteLongToLongFunction 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)
long removeKeyIfAbsent(byte key,
long value)
long getIfAbsentPut(byte key,
long value)
long getIfAbsentPut(byte key,
LongFunction0 function)
long getIfAbsentPutWithKey(byte key,
ByteToLongFunction function)
<P> long getIfAbsentPutWith(byte key,
LongFunction<? super P> function,
P parameter)
long updateValue(byte key,
long initialValueIfAbsent,
LongToLongFunction function)
MutableLongByteMap flipUniqueValues()
ByteLongMapflipUniqueValues in interface ByteLongMapMutableByteLongMap select(ByteLongPredicate predicate)
select in interface ByteLongMapMutableByteLongMap reject(ByteLongPredicate predicate)
reject in interface ByteLongMapMutableByteLongMap withKeyValue(byte key, long value)
MutableByteLongMap withoutKey(byte key)
MutableByteLongMap withoutAllKeys(ByteIterable keys)
default MutableByteLongMap withAllKeyValues(Iterable<ByteLongPair> keyValuePairs)
MutableByteLongMap asUnmodifiable()
MutableByteLongMap asSynchronized()
long addToValue(byte key,
long toBeAdded)
Copyright © 2004–2019. All rights reserved.