FloatIterable
, ObjectFloatMap<K>
, PrimitiveIterable
ObjectFloatHashMap
, ObjectFloatHashMapWithHashingStrategy
, SynchronizedObjectFloatMap
, UnmodifiableObjectFloatMap
public interface MutableObjectFloatMap<K> extends ObjectFloatMap<K>
Modifier and Type | Method | Description |
---|---|---|
float |
addToValue(K key,
float toBeAdded) |
|
MutableObjectFloatMap<K> |
asSynchronized() |
|
MutableObjectFloatMap<K> |
asUnmodifiable() |
|
void |
clear() |
|
<V> MutableCollection<V> |
collect(FloatToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableFloatObjectMap<K> |
flipUniqueValues() |
Return the FloatObjectMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
MutableFloatIterator |
floatIterator() |
Returns a primitive iterator that can be used to iterate over the FloatIterable in an
imperative style.
|
float |
getIfAbsentPut(K key,
float value) |
|
float |
getIfAbsentPut(K key,
FloatFunction0 function) |
|
<P> float |
getIfAbsentPutWith(K key,
FloatFunction<? super P> function,
P parameter) |
|
float |
getIfAbsentPutWithKey(K key,
FloatFunction<? super K> function) |
|
void |
put(K key,
float value) |
|
void |
putAll(ObjectFloatMap<? extends K> map) |
|
default void |
putPair(ObjectFloatPair<K> keyValuePair) |
This method allows MutableObjectFloatMap the ability to add an element in the form of
ObjectFloatPair<K> . |
MutableFloatCollection |
reject(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return false for the specified predicate.
|
MutableObjectFloatMap<K> |
reject(ObjectFloatPredicate<? super K> predicate) |
|
void |
remove(Object key) |
|
void |
removeKey(K key) |
|
float |
removeKeyIfAbsent(K key,
float value) |
|
MutableFloatCollection |
select(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for the specified predicate.
|
MutableObjectFloatMap<K> |
select(ObjectFloatPredicate<? super K> predicate) |
|
default MutableObjectFloatMap<K> |
tap(FloatProcedure procedure) |
|
float |
updateValue(K key,
float initialValueIfAbsent,
FloatToFloatFunction function) |
|
void |
updateValues(ObjectFloatToFloatFunction<? super K> function) |
Updates the values in-place.
|
default MutableObjectFloatMap<K> |
withAllKeyValues(Iterable<ObjectFloatPair<K>> keyValuePairs) |
|
MutableObjectFloatMap<K> |
withKeyValue(K key,
float value) |
|
MutableObjectFloatMap<K> |
withoutAllKeys(Iterable<? extends K> keys) |
|
MutableObjectFloatMap<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
MutableFloatIterator floatIterator()
FloatIterable
floatIterator
in interface FloatIterable
void clear()
void put(K key, float value)
default void putPair(ObjectFloatPair<K> keyValuePair)
ObjectFloatPair<K>
.put(Object, float)
void putAll(ObjectFloatMap<? extends K> map)
void updateValues(ObjectFloatToFloatFunction<? 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)
float removeKeyIfAbsent(K key, float value)
float getIfAbsentPut(K key, float value)
float getIfAbsentPut(K key, FloatFunction0 function)
float getIfAbsentPutWithKey(K key, FloatFunction<? super K> function)
<P> float getIfAbsentPutWith(K key, FloatFunction<? super P> function, P parameter)
float updateValue(K key, float initialValueIfAbsent, FloatToFloatFunction function)
MutableFloatObjectMap<K> flipUniqueValues()
ObjectFloatMap
flipUniqueValues
in interface ObjectFloatMap<K>
MutableObjectFloatMap<K> select(ObjectFloatPredicate<? super K> predicate)
select
in interface ObjectFloatMap<K>
MutableObjectFloatMap<K> reject(ObjectFloatPredicate<? super K> predicate)
reject
in interface ObjectFloatMap<K>
MutableFloatCollection select(FloatPredicate predicate)
FloatIterable
select
in interface FloatIterable
MutableFloatCollection reject(FloatPredicate predicate)
FloatIterable
reject
in interface FloatIterable
default MutableObjectFloatMap<K> tap(FloatProcedure procedure)
tap
in interface FloatIterable
tap
in interface ObjectFloatMap<K>
<V> MutableCollection<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterable
collect
in interface FloatIterable
MutableObjectFloatMap<K> withKeyValue(K key, float value)
MutableObjectFloatMap<K> withoutKey(K key)
MutableObjectFloatMap<K> withoutAllKeys(Iterable<? extends K> keys)
default MutableObjectFloatMap<K> withAllKeyValues(Iterable<ObjectFloatPair<K>> keyValuePairs)
MutableObjectFloatMap<K> asUnmodifiable()
MutableObjectFloatMap<K> asSynchronized()
float addToValue(K key, float toBeAdded)
Copyright © 2004–2019. All rights reserved.