IntIntMap
, IntIterable
, IntValuesMap
, MutableIntValuesMap
, PrimitiveIterable
IntIntHashMap
, SynchronizedIntIntMap
, UnmodifiableIntIntMap
public interface MutableIntIntMap extends IntIntMap, MutableIntValuesMap
Modifier and Type | Method | Description |
---|---|---|
int |
addToValue(int key,
int toBeAdded) |
|
MutableIntIntMap |
asSynchronized() |
|
MutableIntIntMap |
asUnmodifiable() |
|
MutableIntIntMap |
flipUniqueValues() |
Return the IntIntMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
int |
getIfAbsentPut(int key,
int value) |
|
int |
getIfAbsentPut(int key,
IntFunction0 function) |
|
<P> int |
getIfAbsentPutWith(int key,
IntFunction<? super P> function,
P parameter) |
|
int |
getIfAbsentPutWithKey(int key,
IntToIntFunction function) |
|
void |
put(int key,
int value) |
|
void |
putAll(IntIntMap map) |
|
default void |
putPair(IntIntPair keyValuePair) |
This method allows MutableIntIntMap the ability to add an element in the form of IntIntPair.
|
MutableIntIntMap |
reject(IntIntPredicate predicate) |
|
void |
remove(int key) |
|
void |
removeKey(int key) |
|
int |
removeKeyIfAbsent(int key,
int value) |
|
MutableIntIntMap |
select(IntIntPredicate predicate) |
|
int |
updateValue(int key,
int initialValueIfAbsent,
IntToIntFunction function) |
|
void |
updateValues(IntIntToIntFunction function) |
Updates the values in-place.
|
default MutableIntIntMap |
withAllKeyValues(Iterable<IntIntPair> keyValuePairs) |
|
MutableIntIntMap |
withKeyValue(int key,
int value) |
|
MutableIntIntMap |
withoutAllKeys(IntIterable keys) |
|
MutableIntIntMap |
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, intIterator, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
void put(int key, int value)
default void putPair(IntIntPair keyValuePair)
put(int, int)
void putAll(IntIntMap map)
void updateValues(IntIntToIntFunction 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)
int removeKeyIfAbsent(int key, int value)
int getIfAbsentPut(int key, int value)
int getIfAbsentPut(int key, IntFunction0 function)
int getIfAbsentPutWithKey(int key, IntToIntFunction function)
<P> int getIfAbsentPutWith(int key, IntFunction<? super P> function, P parameter)
int updateValue(int key, int initialValueIfAbsent, IntToIntFunction function)
MutableIntIntMap flipUniqueValues()
IntIntMap
flipUniqueValues
in interface IntIntMap
MutableIntIntMap select(IntIntPredicate predicate)
MutableIntIntMap reject(IntIntPredicate predicate)
MutableIntIntMap withKeyValue(int key, int value)
MutableIntIntMap withoutKey(int key)
MutableIntIntMap withoutAllKeys(IntIterable keys)
default MutableIntIntMap withAllKeyValues(Iterable<IntIntPair> keyValuePairs)
MutableIntIntMap asUnmodifiable()
MutableIntIntMap asSynchronized()
int addToValue(int key, int toBeAdded)
Copyright © 2004–2019. All rights reserved.