DoubleIntMap
, IntIterable
, IntValuesMap
, MutableIntValuesMap
, PrimitiveIterable
DoubleIntHashMap
, SynchronizedDoubleIntMap
, UnmodifiableDoubleIntMap
public interface MutableDoubleIntMap extends DoubleIntMap, MutableIntValuesMap
Modifier and Type | Method | Description |
---|---|---|
int |
addToValue(double key,
int toBeAdded) |
|
MutableDoubleIntMap |
asSynchronized() |
|
MutableDoubleIntMap |
asUnmodifiable() |
|
MutableIntDoubleMap |
flipUniqueValues() |
Return the IntDoubleMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
int |
getIfAbsentPut(double key,
int value) |
|
int |
getIfAbsentPut(double key,
IntFunction0 function) |
|
<P> int |
getIfAbsentPutWith(double key,
IntFunction<? super P> function,
P parameter) |
|
int |
getIfAbsentPutWithKey(double key,
DoubleToIntFunction function) |
|
void |
put(double key,
int value) |
|
void |
putAll(DoubleIntMap map) |
|
default void |
putPair(DoubleIntPair keyValuePair) |
This method allows MutableDoubleIntMap the ability to add an element in the form of DoubleIntPair.
|
MutableDoubleIntMap |
reject(DoubleIntPredicate predicate) |
|
void |
remove(double key) |
|
void |
removeKey(double key) |
|
int |
removeKeyIfAbsent(double key,
int value) |
|
MutableDoubleIntMap |
select(DoubleIntPredicate predicate) |
|
int |
updateValue(double key,
int initialValueIfAbsent,
IntToIntFunction function) |
|
void |
updateValues(DoubleIntToIntFunction function) |
Updates the values in-place.
|
default MutableDoubleIntMap |
withAllKeyValues(Iterable<DoubleIntPair> keyValuePairs) |
|
MutableDoubleIntMap |
withKeyValue(double key,
int value) |
|
MutableDoubleIntMap |
withoutAllKeys(DoubleIterable keys) |
|
MutableDoubleIntMap |
withoutKey(double 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(double key, int value)
default void putPair(DoubleIntPair keyValuePair)
put(double, int)
void putAll(DoubleIntMap map)
void updateValues(DoubleIntToIntFunction function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(double key)
void remove(double key)
int removeKeyIfAbsent(double key, int value)
int getIfAbsentPut(double key, int value)
int getIfAbsentPut(double key, IntFunction0 function)
int getIfAbsentPutWithKey(double key, DoubleToIntFunction function)
<P> int getIfAbsentPutWith(double key, IntFunction<? super P> function, P parameter)
int updateValue(double key, int initialValueIfAbsent, IntToIntFunction function)
MutableIntDoubleMap flipUniqueValues()
DoubleIntMap
flipUniqueValues
in interface DoubleIntMap
MutableDoubleIntMap select(DoubleIntPredicate predicate)
select
in interface DoubleIntMap
MutableDoubleIntMap reject(DoubleIntPredicate predicate)
reject
in interface DoubleIntMap
MutableDoubleIntMap withKeyValue(double key, int value)
MutableDoubleIntMap withoutKey(double key)
MutableDoubleIntMap withoutAllKeys(DoubleIterable keys)
default MutableDoubleIntMap withAllKeyValues(Iterable<DoubleIntPair> keyValuePairs)
MutableDoubleIntMap asUnmodifiable()
MutableDoubleIntMap asSynchronized()
int addToValue(double key, int toBeAdded)
Copyright © 2004–2019. All rights reserved.