LongIterable
, LongLongMap
, LongValuesMap
, MutableLongValuesMap
, PrimitiveIterable
LongLongHashMap
, SynchronizedLongLongMap
, UnmodifiableLongLongMap
public interface MutableLongLongMap extends LongLongMap, MutableLongValuesMap
Modifier and Type | Method | Description |
---|---|---|
long |
addToValue(long key,
long toBeAdded) |
|
MutableLongLongMap |
asSynchronized() |
|
MutableLongLongMap |
asUnmodifiable() |
|
MutableLongLongMap |
flipUniqueValues() |
Return the LongLongMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
long |
getIfAbsentPut(long key,
long value) |
|
long |
getIfAbsentPut(long key,
LongFunction0 function) |
|
<P> long |
getIfAbsentPutWith(long key,
LongFunction<? super P> function,
P parameter) |
|
long |
getIfAbsentPutWithKey(long key,
LongToLongFunction function) |
|
void |
put(long key,
long value) |
|
void |
putAll(LongLongMap map) |
|
default void |
putPair(LongLongPair keyValuePair) |
This method allows MutableLongLongMap the ability to add an element in the form of LongLongPair.
|
MutableLongLongMap |
reject(LongLongPredicate predicate) |
|
void |
remove(long key) |
|
void |
removeKey(long key) |
|
long |
removeKeyIfAbsent(long key,
long value) |
|
MutableLongLongMap |
select(LongLongPredicate predicate) |
|
long |
updateValue(long key,
long initialValueIfAbsent,
LongToLongFunction function) |
|
void |
updateValues(LongLongToLongFunction function) |
Updates the values in-place.
|
default MutableLongLongMap |
withAllKeyValues(Iterable<LongLongPair> keyValuePairs) |
|
MutableLongLongMap |
withKeyValue(long key,
long value) |
|
MutableLongLongMap |
withoutAllKeys(LongIterable keys) |
|
MutableLongLongMap |
withoutKey(long 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, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toString
containsValue, forEachValue, tap, values
clear, collect, longIterator, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
void put(long key, long value)
default void putPair(LongLongPair keyValuePair)
put(long, long)
void putAll(LongLongMap map)
void updateValues(LongLongToLongFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(long key)
void remove(long key)
long removeKeyIfAbsent(long key, long value)
long getIfAbsentPut(long key, long value)
long getIfAbsentPut(long key, LongFunction0 function)
long getIfAbsentPutWithKey(long key, LongToLongFunction function)
<P> long getIfAbsentPutWith(long key, LongFunction<? super P> function, P parameter)
long updateValue(long key, long initialValueIfAbsent, LongToLongFunction function)
MutableLongLongMap flipUniqueValues()
LongLongMap
flipUniqueValues
in interface LongLongMap
MutableLongLongMap select(LongLongPredicate predicate)
select
in interface LongLongMap
MutableLongLongMap reject(LongLongPredicate predicate)
reject
in interface LongLongMap
MutableLongLongMap withKeyValue(long key, long value)
MutableLongLongMap withoutKey(long key)
MutableLongLongMap withoutAllKeys(LongIterable keys)
default MutableLongLongMap withAllKeyValues(Iterable<LongLongPair> keyValuePairs)
MutableLongLongMap asUnmodifiable()
MutableLongLongMap asSynchronized()
long addToValue(long key, long toBeAdded)
Copyright © 2004–2019. All rights reserved.