ByteIterable
, ObjectByteMap<K>
, PrimitiveIterable
ObjectByteHashMap
, ObjectByteHashMapWithHashingStrategy
, SynchronizedObjectByteMap
, UnmodifiableObjectByteMap
public interface MutableObjectByteMap<K> extends ObjectByteMap<K>
Modifier and Type | Method | Description |
---|---|---|
byte |
addToValue(K key,
byte toBeAdded) |
|
MutableObjectByteMap<K> |
asSynchronized() |
|
MutableObjectByteMap<K> |
asUnmodifiable() |
|
MutableByteIterator |
byteIterator() |
Returns a primitive iterator that can be used to iterate over the ByteIterable in an
imperative style.
|
void |
clear() |
|
<V> MutableCollection<V> |
collect(ByteToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableByteObjectMap<K> |
flipUniqueValues() |
Return the ByteObjectMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
byte |
getIfAbsentPut(K key,
byte value) |
|
byte |
getIfAbsentPut(K key,
ByteFunction0 function) |
|
<P> byte |
getIfAbsentPutWith(K key,
ByteFunction<? super P> function,
P parameter) |
|
byte |
getIfAbsentPutWithKey(K key,
ByteFunction<? super K> function) |
|
void |
put(K key,
byte value) |
|
void |
putAll(ObjectByteMap<? extends K> map) |
|
default void |
putPair(ObjectBytePair<K> keyValuePair) |
This method allows MutableObjectByteMap the ability to add an element in the form of ObjectBytePair
|
MutableByteCollection |
reject(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return false for the specified predicate.
|
MutableObjectByteMap<K> |
reject(ObjectBytePredicate<? super K> predicate) |
|
void |
remove(java.lang.Object key) |
|
void |
removeKey(K key) |
|
byte |
removeKeyIfAbsent(K key,
byte value) |
|
MutableByteCollection |
select(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return true for the specified predicate.
|
MutableObjectByteMap<K> |
select(ObjectBytePredicate<? super K> predicate) |
|
default MutableObjectByteMap<K> |
tap(ByteProcedure procedure) |
|
byte |
updateValue(K key,
byte initialValueIfAbsent,
ByteToByteFunction function) |
|
MutableObjectByteMap<K> |
withKeyValue(K key,
byte value) |
|
MutableObjectByteMap<K> |
withoutAllKeys(java.lang.Iterable<? extends K> keys) |
|
MutableObjectByteMap<K> |
withoutKey(K 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
containsKey, containsValue, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getOrThrow, keySet, keysView, keyValuesView, toImmutable, toString, values
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
MutableByteIterator byteIterator()
ByteIterable
byteIterator
in interface ByteIterable
void clear()
void put(K key, byte value)
default void putPair(ObjectBytePair<K> keyValuePair)
put(Object, byte)
void putAll(ObjectByteMap<? extends K> map)
void removeKey(K key)
void remove(java.lang.Object key)
byte removeKeyIfAbsent(K key, byte value)
byte getIfAbsentPut(K key, byte value)
byte getIfAbsentPut(K key, ByteFunction0 function)
byte getIfAbsentPutWithKey(K key, ByteFunction<? super K> function)
<P> byte getIfAbsentPutWith(K key, ByteFunction<? super P> function, P parameter)
byte updateValue(K key, byte initialValueIfAbsent, ByteToByteFunction function)
MutableByteObjectMap<K> flipUniqueValues()
ObjectByteMap
flipUniqueValues
in interface ObjectByteMap<K>
MutableObjectByteMap<K> select(ObjectBytePredicate<? super K> predicate)
select
in interface ObjectByteMap<K>
MutableObjectByteMap<K> reject(ObjectBytePredicate<? super K> predicate)
reject
in interface ObjectByteMap<K>
MutableByteCollection select(BytePredicate predicate)
ByteIterable
select
in interface ByteIterable
MutableByteCollection reject(BytePredicate predicate)
ByteIterable
reject
in interface ByteIterable
default MutableObjectByteMap<K> tap(ByteProcedure procedure)
tap
in interface ByteIterable
tap
in interface ObjectByteMap<K>
<V> MutableCollection<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterable
collect
in interface ByteIterable
MutableObjectByteMap<K> withKeyValue(K key, byte value)
MutableObjectByteMap<K> withoutKey(K key)
MutableObjectByteMap<K> withoutAllKeys(java.lang.Iterable<? extends K> keys)
MutableObjectByteMap<K> asUnmodifiable()
MutableObjectByteMap<K> asSynchronized()
byte addToValue(K key, byte toBeAdded)
Copyright © 2004–2018. All rights reserved.