ByteShortMap
, MutableShortValuesMap
, PrimitiveIterable
, ShortIterable
, ShortValuesMap
ByteShortHashMap
, SynchronizedByteShortMap
, UnmodifiableByteShortMap
public interface MutableByteShortMap extends ByteShortMap, MutableShortValuesMap
Modifier and Type | Method | Description |
---|---|---|
short |
addToValue(byte key,
short toBeAdded) |
|
MutableByteShortMap |
asSynchronized() |
|
MutableByteShortMap |
asUnmodifiable() |
|
MutableShortByteMap |
flipUniqueValues() |
Return the ShortByteMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
short |
getIfAbsentPut(byte key,
short value) |
|
short |
getIfAbsentPut(byte key,
ShortFunction0 function) |
|
<P> short |
getIfAbsentPutWith(byte key,
ShortFunction<? super P> function,
P parameter) |
|
short |
getIfAbsentPutWithKey(byte key,
ByteToShortFunction function) |
|
void |
put(byte key,
short value) |
|
void |
putAll(ByteShortMap map) |
|
default void |
putPair(ByteShortPair keyValuePair) |
This method allows MutableByteShortMap the ability to add an element in the form of ByteShortPair.
|
MutableByteShortMap |
reject(ByteShortPredicate predicate) |
|
void |
remove(byte key) |
|
void |
removeKey(byte key) |
|
short |
removeKeyIfAbsent(byte key,
short value) |
|
MutableByteShortMap |
select(ByteShortPredicate predicate) |
|
short |
updateValue(byte key,
short initialValueIfAbsent,
ShortToShortFunction function) |
|
void |
updateValues(ByteShortToShortFunction function) |
Updates the values in-place.
|
default MutableByteShortMap |
withAllKeyValues(java.lang.Iterable<ByteShortPair> keyValuePairs) |
|
MutableByteShortMap |
withKeyValue(byte key,
short value) |
|
MutableByteShortMap |
withoutAllKeys(ByteIterable keys) |
|
MutableByteShortMap |
withoutKey(byte key) |
containsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
clear, collect, reject, select, shortIterator
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
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
void put(byte key, short value)
default void putPair(ByteShortPair keyValuePair)
put(byte, short)
void putAll(ByteShortMap map)
void updateValues(ByteShortToShortFunction 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)
short removeKeyIfAbsent(byte key, short value)
short getIfAbsentPut(byte key, short value)
short getIfAbsentPut(byte key, ShortFunction0 function)
short getIfAbsentPutWithKey(byte key, ByteToShortFunction function)
<P> short getIfAbsentPutWith(byte key, ShortFunction<? super P> function, P parameter)
short updateValue(byte key, short initialValueIfAbsent, ShortToShortFunction function)
MutableShortByteMap flipUniqueValues()
ByteShortMap
flipUniqueValues
in interface ByteShortMap
MutableByteShortMap select(ByteShortPredicate predicate)
select
in interface ByteShortMap
MutableByteShortMap reject(ByteShortPredicate predicate)
reject
in interface ByteShortMap
MutableByteShortMap withKeyValue(byte key, short value)
MutableByteShortMap withoutKey(byte key)
MutableByteShortMap withoutAllKeys(ByteIterable keys)
default MutableByteShortMap withAllKeyValues(java.lang.Iterable<ByteShortPair> keyValuePairs)
MutableByteShortMap asUnmodifiable()
MutableByteShortMap asSynchronized()
short addToValue(byte key, short toBeAdded)
Copyright © 2004–2020. All rights reserved.