ByteIterable
, ByteValuesMap
, IntByteMap
, MutableByteValuesMap
, PrimitiveIterable
IntByteHashMap
, SynchronizedIntByteMap
, UnmodifiableIntByteMap
public interface MutableIntByteMap extends IntByteMap, MutableByteValuesMap
Modifier and Type | Method | Description |
---|---|---|
byte |
addToValue(int key,
byte toBeAdded) |
|
MutableIntByteMap |
asSynchronized() |
|
MutableIntByteMap |
asUnmodifiable() |
|
MutableByteIntMap |
flipUniqueValues() |
Return the ByteIntMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
byte |
getIfAbsentPut(int key,
byte value) |
|
byte |
getIfAbsentPut(int key,
ByteFunction0 function) |
|
<P> byte |
getIfAbsentPutWith(int key,
ByteFunction<? super P> function,
P parameter) |
|
byte |
getIfAbsentPutWithKey(int key,
IntToByteFunction function) |
|
void |
put(int key,
byte value) |
|
void |
putAll(IntByteMap map) |
|
default void |
putPair(IntBytePair keyValuePair) |
This method allows MutableIntByteMap the ability to add an element in the form of IntBytePair.
|
MutableIntByteMap |
reject(IntBytePredicate predicate) |
|
void |
remove(int key) |
|
void |
removeKey(int key) |
|
byte |
removeKeyIfAbsent(int key,
byte value) |
|
MutableIntByteMap |
select(IntBytePredicate predicate) |
|
byte |
updateValue(int key,
byte initialValueIfAbsent,
ByteToByteFunction function) |
|
void |
updateValues(IntByteToByteFunction function) |
Updates the values in-place.
|
default MutableIntByteMap |
withAllKeyValues(Iterable<IntBytePair> keyValuePairs) |
|
MutableIntByteMap |
withKeyValue(int key,
byte value) |
|
MutableIntByteMap |
withoutAllKeys(IntIterable keys) |
|
MutableIntByteMap |
withoutKey(int 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(int key, byte value)
default void putPair(IntBytePair keyValuePair)
put(int, byte)
void putAll(IntByteMap map)
void updateValues(IntByteToByteFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(int key)
void remove(int key)
byte removeKeyIfAbsent(int key, byte value)
byte getIfAbsentPut(int key, byte value)
byte getIfAbsentPut(int key, ByteFunction0 function)
byte getIfAbsentPutWithKey(int key, IntToByteFunction function)
<P> byte getIfAbsentPutWith(int key, ByteFunction<? super P> function, P parameter)
byte updateValue(int key, byte initialValueIfAbsent, ByteToByteFunction function)
MutableByteIntMap flipUniqueValues()
IntByteMap
flipUniqueValues
in interface IntByteMap
MutableIntByteMap select(IntBytePredicate predicate)
select
in interface IntByteMap
MutableIntByteMap reject(IntBytePredicate predicate)
reject
in interface IntByteMap
MutableIntByteMap withKeyValue(int key, byte value)
MutableIntByteMap withoutKey(int key)
MutableIntByteMap withoutAllKeys(IntIterable keys)
default MutableIntByteMap withAllKeyValues(Iterable<IntBytePair> keyValuePairs)
MutableIntByteMap asUnmodifiable()
MutableIntByteMap asSynchronized()
byte addToValue(int key, byte toBeAdded)
Copyright © 2004–2019. All rights reserved.