DoubleIterable
, ObjectDoubleMap<K>
, PrimitiveIterable
ObjectDoubleHashMap
, ObjectDoubleHashMapWithHashingStrategy
, SynchronizedObjectDoubleMap
, UnmodifiableObjectDoubleMap
public interface MutableObjectDoubleMap<K> extends ObjectDoubleMap<K>
Modifier and Type | Method | Description |
---|---|---|
double |
addToValue(K key,
double toBeAdded) |
|
MutableObjectDoubleMap<K> |
asSynchronized() |
|
MutableObjectDoubleMap<K> |
asUnmodifiable() |
|
void |
clear() |
|
<V> MutableCollection<V> |
collect(DoubleToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableDoubleIterator |
doubleIterator() |
Returns a primitive iterator that can be used to iterate over the DoubleIterable in an
imperative style.
|
MutableDoubleObjectMap<K> |
flipUniqueValues() |
Return the DoubleObjectMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
double |
getIfAbsentPut(K key,
double value) |
|
double |
getIfAbsentPut(K key,
DoubleFunction0 function) |
|
<P> double |
getIfAbsentPutWith(K key,
DoubleFunction<? super P> function,
P parameter) |
|
double |
getIfAbsentPutWithKey(K key,
DoubleFunction<? super K> function) |
|
void |
put(K key,
double value) |
|
void |
putAll(ObjectDoubleMap<? extends K> map) |
|
default void |
putPair(ObjectDoublePair<K> keyValuePair) |
This method allows MutableObjectDoubleMap the ability to add an element in the form of
ObjectDoublePair<K> . |
MutableDoubleCollection |
reject(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return false for the specified predicate.
|
MutableObjectDoubleMap<K> |
reject(ObjectDoublePredicate<? super K> predicate) |
|
void |
remove(Object key) |
|
void |
removeKey(K key) |
|
double |
removeKeyIfAbsent(K key,
double value) |
|
MutableDoubleCollection |
select(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return true for the specified predicate.
|
MutableObjectDoubleMap<K> |
select(ObjectDoublePredicate<? super K> predicate) |
|
default MutableObjectDoubleMap<K> |
tap(DoubleProcedure procedure) |
|
double |
updateValue(K key,
double initialValueIfAbsent,
DoubleToDoubleFunction function) |
|
void |
updateValues(ObjectDoubleToDoubleFunction<? super K> function) |
Updates the values in-place.
|
default MutableObjectDoubleMap<K> |
withAllKeyValues(Iterable<ObjectDoublePair<K>> keyValuePairs) |
|
MutableObjectDoubleMap<K> |
withKeyValue(K key,
double value) |
|
MutableObjectDoubleMap<K> |
withoutAllKeys(Iterable<? extends K> keys) |
|
MutableObjectDoubleMap<K> |
withoutKey(K 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, toSortedList
containsKey, containsValue, forEachKey, forEachKeyValue, forEachValue, get, getIfAbsent, getOrThrow, keySet, keysView, keyValuesView, toImmutable, toString, values
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
MutableDoubleIterator doubleIterator()
DoubleIterable
doubleIterator
in interface DoubleIterable
void clear()
void put(K key, double value)
default void putPair(ObjectDoublePair<K> keyValuePair)
ObjectDoublePair<K>
.put(Object, double)
void putAll(ObjectDoubleMap<? extends K> map)
void updateValues(ObjectDoubleToDoubleFunction<? super K> function)
function
- that takes a key and its value and that returns a new value for this keyvoid removeKey(K key)
void remove(Object key)
double removeKeyIfAbsent(K key, double value)
double getIfAbsentPut(K key, double value)
double getIfAbsentPut(K key, DoubleFunction0 function)
double getIfAbsentPutWithKey(K key, DoubleFunction<? super K> function)
<P> double getIfAbsentPutWith(K key, DoubleFunction<? super P> function, P parameter)
double updateValue(K key, double initialValueIfAbsent, DoubleToDoubleFunction function)
MutableDoubleObjectMap<K> flipUniqueValues()
ObjectDoubleMap
flipUniqueValues
in interface ObjectDoubleMap<K>
MutableObjectDoubleMap<K> select(ObjectDoublePredicate<? super K> predicate)
select
in interface ObjectDoubleMap<K>
MutableObjectDoubleMap<K> reject(ObjectDoublePredicate<? super K> predicate)
reject
in interface ObjectDoubleMap<K>
MutableDoubleCollection select(DoublePredicate predicate)
DoubleIterable
select
in interface DoubleIterable
MutableDoubleCollection reject(DoublePredicate predicate)
DoubleIterable
reject
in interface DoubleIterable
default MutableObjectDoubleMap<K> tap(DoubleProcedure procedure)
tap
in interface DoubleIterable
tap
in interface ObjectDoubleMap<K>
<V> MutableCollection<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterable
collect
in interface DoubleIterable
MutableObjectDoubleMap<K> withKeyValue(K key, double value)
MutableObjectDoubleMap<K> withoutKey(K key)
MutableObjectDoubleMap<K> withoutAllKeys(Iterable<? extends K> keys)
default MutableObjectDoubleMap<K> withAllKeyValues(Iterable<ObjectDoublePair<K>> keyValuePairs)
MutableObjectDoubleMap<K> asUnmodifiable()
MutableObjectDoubleMap<K> asSynchronized()
double addToValue(K key, double toBeAdded)
Copyright © 2004–2019. All rights reserved.