ObjectShortMap<K>
, PrimitiveIterable
, ShortIterable
ObjectShortHashMap
, ObjectShortHashMapWithHashingStrategy
, SynchronizedObjectShortMap
, UnmodifiableObjectShortMap
public interface MutableObjectShortMap<K> extends ObjectShortMap<K>
Modifier and Type | Method | Description |
---|---|---|
short |
addToValue(K key,
short toBeAdded) |
|
MutableObjectShortMap<K> |
asSynchronized() |
|
MutableObjectShortMap<K> |
asUnmodifiable() |
|
void |
clear() |
|
<V> MutableCollection<V> |
collect(ShortToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableShortObjectMap<K> |
flipUniqueValues() |
Return the ShortObjectMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
short |
getIfAbsentPut(K key,
short value) |
|
short |
getIfAbsentPut(K key,
ShortFunction0 function) |
|
<P> short |
getIfAbsentPutWith(K key,
ShortFunction<? super P> function,
P parameter) |
|
short |
getIfAbsentPutWithKey(K key,
ShortFunction<? super K> function) |
|
void |
put(K key,
short value) |
|
void |
putAll(ObjectShortMap<? extends K> map) |
|
default void |
putPair(ObjectShortPair<K> keyValuePair) |
This method allows MutableObjectShortMap the ability to add an element in the form of ObjectShortPair
|
MutableObjectShortMap<K> |
reject(ObjectShortPredicate<? super K> predicate) |
|
MutableShortCollection |
reject(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
void |
remove(java.lang.Object key) |
|
void |
removeKey(K key) |
|
short |
removeKeyIfAbsent(K key,
short value) |
|
MutableObjectShortMap<K> |
select(ObjectShortPredicate<? super K> predicate) |
|
MutableShortCollection |
select(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
MutableShortIterator |
shortIterator() |
Returns a primitive iterator that can be used to iterate over the ShortIterable in an
imperative style.
|
default MutableObjectShortMap<K> |
tap(ShortProcedure procedure) |
|
short |
updateValue(K key,
short initialValueIfAbsent,
ShortToShortFunction function) |
|
MutableObjectShortMap<K> |
withKeyValue(K key,
short value) |
|
MutableObjectShortMap<K> |
withoutAllKeys(java.lang.Iterable<? extends K> keys) |
|
MutableObjectShortMap<K> |
withoutKey(K key) |
containsKey, containsValue, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getOrThrow, keySet, keysView, keyValuesView, toImmutable, toString, values
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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
MutableShortIterator shortIterator()
ShortIterable
shortIterator
in interface ShortIterable
void clear()
void put(K key, short value)
default void putPair(ObjectShortPair<K> keyValuePair)
put(Object, short)
void putAll(ObjectShortMap<? extends K> map)
void removeKey(K key)
void remove(java.lang.Object key)
short removeKeyIfAbsent(K key, short value)
short getIfAbsentPut(K key, short value)
short getIfAbsentPut(K key, ShortFunction0 function)
short getIfAbsentPutWithKey(K key, ShortFunction<? super K> function)
<P> short getIfAbsentPutWith(K key, ShortFunction<? super P> function, P parameter)
short updateValue(K key, short initialValueIfAbsent, ShortToShortFunction function)
MutableShortObjectMap<K> flipUniqueValues()
ObjectShortMap
flipUniqueValues
in interface ObjectShortMap<K>
MutableObjectShortMap<K> select(ObjectShortPredicate<? super K> predicate)
select
in interface ObjectShortMap<K>
MutableObjectShortMap<K> reject(ObjectShortPredicate<? super K> predicate)
reject
in interface ObjectShortMap<K>
MutableShortCollection select(ShortPredicate predicate)
ShortIterable
select
in interface ShortIterable
MutableShortCollection reject(ShortPredicate predicate)
ShortIterable
reject
in interface ShortIterable
default MutableObjectShortMap<K> tap(ShortProcedure procedure)
tap
in interface ObjectShortMap<K>
tap
in interface ShortIterable
<V> MutableCollection<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterable
collect
in interface ShortIterable
MutableObjectShortMap<K> withKeyValue(K key, short value)
MutableObjectShortMap<K> withoutKey(K key)
MutableObjectShortMap<K> withoutAllKeys(java.lang.Iterable<? extends K> keys)
MutableObjectShortMap<K> asUnmodifiable()
MutableObjectShortMap<K> asSynchronized()
short addToValue(K key, short toBeAdded)
Copyright © 2004–2018. All rights reserved.