LongIterable, ObjectLongMap<K>, PrimitiveIterableObjectLongHashMap, ObjectLongHashMapWithHashingStrategy, SynchronizedObjectLongMap, UnmodifiableObjectLongMappublic interface MutableObjectLongMap<K> extends ObjectLongMap<K>
| Modifier and Type | Method | Description |
|---|---|---|
long |
addToValue(K key,
long toBeAdded) |
|
MutableObjectLongMap<K> |
asSynchronized() |
|
MutableObjectLongMap<K> |
asUnmodifiable() |
|
void |
clear() |
|
<V> MutableCollection<V> |
collect(LongToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableLongObjectMap<K> |
flipUniqueValues() |
Return the LongObjectMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
long |
getIfAbsentPut(K key,
long value) |
|
long |
getIfAbsentPut(K key,
LongFunction0 function) |
|
<P> long |
getIfAbsentPutWith(K key,
LongFunction<? super P> function,
P parameter) |
|
long |
getIfAbsentPutWithKey(K key,
LongFunction<? super K> function) |
|
MutableLongIterator |
longIterator() |
Returns a primitive iterator that can be used to iterate over the LongIterable in an
imperative style.
|
void |
put(K key,
long value) |
|
void |
putAll(ObjectLongMap<? extends K> map) |
|
default void |
putPair(ObjectLongPair<K> keyValuePair) |
This method allows MutableObjectLongMap the ability to add an element in the form of
ObjectLongPair<K>. |
MutableLongCollection |
reject(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
MutableObjectLongMap<K> |
reject(ObjectLongPredicate<? super K> predicate) |
|
void |
remove(java.lang.Object key) |
|
void |
removeKey(K key) |
|
long |
removeKeyIfAbsent(K key,
long value) |
|
MutableLongCollection |
select(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
MutableObjectLongMap<K> |
select(ObjectLongPredicate<? super K> predicate) |
|
default MutableObjectLongMap<K> |
tap(LongProcedure procedure) |
|
long |
updateValue(K key,
long initialValueIfAbsent,
LongToLongFunction function) |
|
void |
updateValues(ObjectLongToLongFunction<? super K> function) |
Updates the values in-place.
|
default MutableObjectLongMap<K> |
withAllKeyValues(java.lang.Iterable<ObjectLongPair<K>> keyValuePairs) |
|
MutableObjectLongMap<K> |
withKeyValue(K key,
long value) |
|
MutableObjectLongMap<K> |
withoutAllKeys(java.lang.Iterable<? extends K> keys) |
|
MutableObjectLongMap<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, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListcontainsKey, containsValue, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getOrThrow, keySet, keysView, keyValuesView, toImmutable, toString, valuesappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeMutableLongIterator longIterator()
LongIterablelongIterator in interface LongIterablevoid clear()
void put(K key, long value)
default void putPair(ObjectLongPair<K> keyValuePair)
ObjectLongPair<K>.put(Object, long)void putAll(ObjectLongMap<? extends K> map)
void updateValues(ObjectLongToLongFunction<? 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(java.lang.Object key)
long removeKeyIfAbsent(K key, long value)
long getIfAbsentPut(K key, long value)
long getIfAbsentPut(K key, LongFunction0 function)
long getIfAbsentPutWithKey(K key, LongFunction<? super K> function)
<P> long getIfAbsentPutWith(K key, LongFunction<? super P> function, P parameter)
long updateValue(K key, long initialValueIfAbsent, LongToLongFunction function)
MutableLongObjectMap<K> flipUniqueValues()
ObjectLongMapflipUniqueValues in interface ObjectLongMap<K>MutableObjectLongMap<K> select(ObjectLongPredicate<? super K> predicate)
select in interface ObjectLongMap<K>MutableObjectLongMap<K> reject(ObjectLongPredicate<? super K> predicate)
reject in interface ObjectLongMap<K>MutableLongCollection select(LongPredicate predicate)
LongIterableselect in interface LongIterableMutableLongCollection reject(LongPredicate predicate)
LongIterablereject in interface LongIterabledefault MutableObjectLongMap<K> tap(LongProcedure procedure)
tap in interface LongIterabletap in interface ObjectLongMap<K><V> MutableCollection<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterableMutableObjectLongMap<K> withKeyValue(K key, long value)
MutableObjectLongMap<K> withoutKey(K key)
MutableObjectLongMap<K> withoutAllKeys(java.lang.Iterable<? extends K> keys)
default MutableObjectLongMap<K> withAllKeyValues(java.lang.Iterable<ObjectLongPair<K>> keyValuePairs)
MutableObjectLongMap<K> asUnmodifiable()
MutableObjectLongMap<K> asSynchronized()
long addToValue(K key, long toBeAdded)
Copyright © 2004–2020. All rights reserved.