ObjectShortMap<K>, PrimitiveIterable, ShortIterableObjectShortHashMap, ObjectShortHashMapWithHashingStrategy, SynchronizedObjectShortMap, UnmodifiableObjectShortMappublic 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<K>. | 
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(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) | 
|
void | 
updateValues(ObjectShortToShortFunction<? super K> function) | 
 Updates the values in-place. 
 | 
default MutableObjectShortMap<K> | 
withAllKeyValues(Iterable<ObjectShortPair<K>> keyValuePairs) | 
|
MutableObjectShortMap<K> | 
withKeyValue(K key,
            short value) | 
|
MutableObjectShortMap<K> | 
withoutAllKeys(Iterable<? extends K> keys) | 
|
MutableObjectShortMap<K> | 
withoutKey(K key) | 
containsKey, containsValue, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getOrThrow, keySet, keysView, keyValuesView, toImmutable, toString, valuesappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeallSatisfy, 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, toSortedListMutableShortIterator shortIterator()
ShortIterableshortIterator in interface ShortIterablevoid clear()
void put(K key, short value)
default void putPair(ObjectShortPair<K> keyValuePair)
ObjectShortPair<K>.put(Object, short)void putAll(ObjectShortMap<? extends K> map)
void updateValues(ObjectShortToShortFunction<? super K> function)
function - that takes a key and its value and that returns a new value for this keyvoid removeKey(K key)
void remove(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()
ObjectShortMapflipUniqueValues 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)
ShortIterableselect in interface ShortIterableMutableShortCollection reject(ShortPredicate predicate)
ShortIterablereject in interface ShortIterabledefault MutableObjectShortMap<K> tap(ShortProcedure procedure)
tap in interface ObjectShortMap<K>tap in interface ShortIterable<V> MutableCollection<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface ShortIterableMutableObjectShortMap<K> withKeyValue(K key, short value)
MutableObjectShortMap<K> withoutKey(K key)
MutableObjectShortMap<K> withoutAllKeys(Iterable<? extends K> keys)
default MutableObjectShortMap<K> withAllKeyValues(Iterable<ObjectShortPair<K>> keyValuePairs)
MutableObjectShortMap<K> asUnmodifiable()
MutableObjectShortMap<K> asSynchronized()
short addToValue(K key, short toBeAdded)
Copyright © 2004–2019. All rights reserved.