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