DoubleLongMap
, LongIterable
, LongValuesMap
, MutableLongValuesMap
, PrimitiveIterable
DoubleLongHashMap
, SynchronizedDoubleLongMap
, UnmodifiableDoubleLongMap
public interface MutableDoubleLongMap extends DoubleLongMap, MutableLongValuesMap
Modifier and Type | Method | Description |
---|---|---|
long |
addToValue(double key,
long toBeAdded) |
|
MutableDoubleLongMap |
asSynchronized() |
|
MutableDoubleLongMap |
asUnmodifiable() |
|
MutableLongDoubleMap |
flipUniqueValues() |
Return the LongDoubleMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
long |
getIfAbsentPut(double key,
long value) |
|
long |
getIfAbsentPut(double key,
LongFunction0 function) |
|
<P> long |
getIfAbsentPutWith(double key,
LongFunction<? super P> function,
P parameter) |
|
long |
getIfAbsentPutWithKey(double key,
DoubleToLongFunction function) |
|
void |
put(double key,
long value) |
|
void |
putAll(DoubleLongMap map) |
|
default void |
putPair(DoubleLongPair keyValuePair) |
This method allows MutableDoubleLongMap the ability to add an element in the form of DoubleLongPair.
|
MutableDoubleLongMap |
reject(DoubleLongPredicate predicate) |
|
void |
remove(double key) |
|
void |
removeKey(double key) |
|
long |
removeKeyIfAbsent(double key,
long value) |
|
MutableDoubleLongMap |
select(DoubleLongPredicate predicate) |
|
long |
updateValue(double key,
long initialValueIfAbsent,
LongToLongFunction function) |
|
void |
updateValues(DoubleLongToLongFunction function) |
Updates the values in-place.
|
default MutableDoubleLongMap |
withAllKeyValues(Iterable<DoubleLongPair> keyValuePairs) |
|
MutableDoubleLongMap |
withKeyValue(double key,
long value) |
|
MutableDoubleLongMap |
withoutAllKeys(DoubleIterable keys) |
|
MutableDoubleLongMap |
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, longIterator, reject, select
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
void put(double key, long value)
default void putPair(DoubleLongPair keyValuePair)
put(double, long)
void putAll(DoubleLongMap map)
void updateValues(DoubleLongToLongFunction 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)
long removeKeyIfAbsent(double key, long value)
long getIfAbsentPut(double key, long value)
long getIfAbsentPut(double key, LongFunction0 function)
long getIfAbsentPutWithKey(double key, DoubleToLongFunction function)
<P> long getIfAbsentPutWith(double key, LongFunction<? super P> function, P parameter)
long updateValue(double key, long initialValueIfAbsent, LongToLongFunction function)
MutableLongDoubleMap flipUniqueValues()
DoubleLongMap
flipUniqueValues
in interface DoubleLongMap
MutableDoubleLongMap select(DoubleLongPredicate predicate)
select
in interface DoubleLongMap
MutableDoubleLongMap reject(DoubleLongPredicate predicate)
reject
in interface DoubleLongMap
MutableDoubleLongMap withKeyValue(double key, long value)
MutableDoubleLongMap withoutKey(double key)
MutableDoubleLongMap withoutAllKeys(DoubleIterable keys)
default MutableDoubleLongMap withAllKeyValues(Iterable<DoubleLongPair> keyValuePairs)
MutableDoubleLongMap asUnmodifiable()
MutableDoubleLongMap asSynchronized()
long addToValue(double key, long toBeAdded)
Copyright © 2004–2019. All rights reserved.