LongIterable
, ObjectLongMap<K>
, PrimitiveIterable
ObjectLongHashMap
, ObjectLongHashMapWithHashingStrategy
, SynchronizedObjectLongMap
, UnmodifiableObjectLongMap
public 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(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(Iterable<ObjectLongPair<K>> keyValuePairs) |
|
MutableObjectLongMap<K> |
withKeyValue(K key,
long value) |
|
MutableObjectLongMap<K> |
withoutAllKeys(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, toSortedList
containsKey, containsValue, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getOrThrow, keySet, keysView, keyValuesView, toImmutable, toString, values
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
MutableLongIterator longIterator()
LongIterable
longIterator
in interface LongIterable
void 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(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()
ObjectLongMap
flipUniqueValues
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)
LongIterable
select
in interface LongIterable
MutableLongCollection reject(LongPredicate predicate)
LongIterable
reject
in interface LongIterable
default MutableObjectLongMap<K> tap(LongProcedure procedure)
tap
in interface LongIterable
tap
in interface ObjectLongMap<K>
<V> MutableCollection<V> collect(LongToObjectFunction<? extends V> function)
LongIterable
collect
in interface LongIterable
MutableObjectLongMap<K> withKeyValue(K key, long value)
MutableObjectLongMap<K> withoutKey(K key)
MutableObjectLongMap<K> withoutAllKeys(Iterable<? extends K> keys)
default MutableObjectLongMap<K> withAllKeyValues(Iterable<ObjectLongPair<K>> keyValuePairs)
MutableObjectLongMap<K> asUnmodifiable()
MutableObjectLongMap<K> asSynchronized()
long addToValue(K key, long toBeAdded)
Copyright © 2004–2019. All rights reserved.