IntIterable, IntValuesMap, LongIntMap, MutableIntValuesMap, PrimitiveIterableLongIntHashMap, SynchronizedLongIntMap, UnmodifiableLongIntMappublic interface MutableLongIntMap extends LongIntMap, MutableIntValuesMap
| Modifier and Type | Method | Description |
|---|---|---|
int |
addToValue(long key,
int toBeAdded) |
|
MutableLongIntMap |
asSynchronized() |
|
MutableLongIntMap |
asUnmodifiable() |
|
MutableIntLongMap |
flipUniqueValues() |
Return the IntLongMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
int |
getIfAbsentPut(long key,
int value) |
|
int |
getIfAbsentPut(long key,
IntFunction0 function) |
|
<P> int |
getIfAbsentPutWith(long key,
IntFunction<? super P> function,
P parameter) |
|
int |
getIfAbsentPutWithKey(long key,
LongToIntFunction function) |
|
void |
put(long key,
int value) |
|
void |
putAll(LongIntMap map) |
|
default void |
putPair(LongIntPair keyValuePair) |
This method allows MutableLongIntMap the ability to add an element in the form of LongIntPair.
|
MutableLongIntMap |
reject(LongIntPredicate predicate) |
|
void |
remove(long key) |
|
void |
removeKey(long key) |
|
int |
removeKeyIfAbsent(long key,
int value) |
|
MutableLongIntMap |
select(LongIntPredicate predicate) |
|
int |
updateValue(long key,
int initialValueIfAbsent,
IntToIntFunction function) |
|
void |
updateValues(LongIntToIntFunction function) |
Updates the values in-place.
|
default MutableLongIntMap |
withAllKeyValues(java.lang.Iterable<LongIntPair> keyValuePairs) |
|
MutableLongIntMap |
withKeyValue(long key,
int value) |
|
MutableLongIntMap |
withoutAllKeys(LongIterable keys) |
|
MutableLongIntMap |
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, toSortedListcontainsValue, forEachValue, tap, valuescontainsKey, equals, forEachKey, forEachKeyValue, get, getIfAbsent, getOrThrow, hashCode, keySet, keysView, keyValuesView, toImmutable, toStringclear, collect, intIterator, reject, selectappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizevoid put(long key,
int value)
default void putPair(LongIntPair keyValuePair)
put(long, int)void putAll(LongIntMap map)
void updateValues(LongIntToIntFunction 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)
int removeKeyIfAbsent(long key,
int value)
int getIfAbsentPut(long key,
int value)
int getIfAbsentPut(long key,
IntFunction0 function)
int getIfAbsentPutWithKey(long key,
LongToIntFunction function)
<P> int getIfAbsentPutWith(long key,
IntFunction<? super P> function,
P parameter)
int updateValue(long key,
int initialValueIfAbsent,
IntToIntFunction function)
MutableIntLongMap flipUniqueValues()
LongIntMapflipUniqueValues in interface LongIntMapMutableLongIntMap select(LongIntPredicate predicate)
select in interface LongIntMapMutableLongIntMap reject(LongIntPredicate predicate)
reject in interface LongIntMapMutableLongIntMap withKeyValue(long key, int value)
MutableLongIntMap withoutKey(long key)
MutableLongIntMap withoutAllKeys(LongIterable keys)
default MutableLongIntMap withAllKeyValues(java.lang.Iterable<LongIntPair> keyValuePairs)
MutableLongIntMap asUnmodifiable()
MutableLongIntMap asSynchronized()
int addToValue(long key,
int toBeAdded)
Copyright © 2004–2020. All rights reserved.