DoubleObjectMap<V>, InternalIterable<V>, java.lang.Iterable<V>, MutablePrimitiveObjectMap<V>, PrimitiveObjectMap<V>, RichIterable<V>DoubleObjectHashMap, SynchronizedDoubleObjectMap, UnmodifiableDoubleObjectMappublic interface MutableDoubleObjectMap<V> extends DoubleObjectMap<V>, MutablePrimitiveObjectMap<V>
| Modifier and Type | Method | Description |
|---|---|---|
MutableDoubleObjectMap<V> |
asSynchronized() |
|
MutableDoubleObjectMap<V> |
asUnmodifiable() |
|
MutableObjectDoubleMap<V> |
flipUniqueValues() |
Return the ObjectDoubleMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
V |
getIfAbsentPut(double key,
Function0<? extends V> function) |
|
V |
getIfAbsentPut(double key,
V value) |
|
<P> V |
getIfAbsentPutWith(double key,
Function<? super P,? extends V> function,
P parameter) |
|
V |
getIfAbsentPutWithKey(double key,
DoubleToObjectFunction<? extends V> function) |
|
V |
put(double key,
V value) |
|
void |
putAll(DoubleObjectMap<? extends V> map) |
|
default V |
putPair(DoubleObjectPair<V> keyValuePair) |
This method allows MutableDoubleObjectMap the ability to add an element in the form of
DoubleObjectPair<V>. |
MutableDoubleObjectMap<V> |
reject(DoubleObjectPredicate<? super V> predicate) |
|
V |
remove(double key) |
|
V |
removeKey(double key) |
|
MutableDoubleObjectMap<V> |
select(DoubleObjectPredicate<? super V> predicate) |
|
MutableDoubleObjectMap<V> |
tap(Procedure<? super V> procedure) |
Executes the Procedure for each element in the iterable and returns
this. |
V |
updateValue(double key,
Function0<? extends V> factory,
Function<? super V,? extends V> function) |
Look up the value associated with
key, apply the function to it, and replace the value. |
<P> V |
updateValueWith(double key,
Function0<? extends V> factory,
Function2<? super V,? super P,? extends V> function,
P parameter) |
Same as
updateValue(double, Function0, Function) with a Function2 and specified parameter which is
passed to the function. |
default MutableDoubleObjectMap<V> |
withAllKeyValues(java.lang.Iterable<DoubleObjectPair<V>> keyValuePairs) |
|
MutableDoubleObjectMap<V> |
withKeyValue(double key,
V value) |
|
MutableDoubleObjectMap<V> |
withoutAllKeys(DoubleIterable keys) |
|
MutableDoubleObjectMap<V> |
withoutKey(double key) |
containsKey, forEachKey, forEachKeyValue, get, getIfAbsent, keySet, keysView, keyValuesView, toImmutableforEach, forEachWith, forEachWithIndexaggregateBy, aggregateInPlaceBy, clear, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, flatCollect, flatCollectWith, groupBy, groupByEach, groupByUniqueKey, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, zip, zipWithIndexcontainsValue, equals, forEachValue, hashCode, parallelStream, spliterator, stream, toString, valuesallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countBy, countBy, countByEach, countByEach, countByWith, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectWith, forEach, getAny, getFirst, getLast, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexdefault V putPair(DoubleObjectPair<V> keyValuePair)
DoubleObjectPair<V>.put(double, Object)void putAll(DoubleObjectMap<? extends V> map)
V removeKey(double key)
V remove(double key)
V getIfAbsentPutWithKey(double key, DoubleToObjectFunction<? extends V> function)
<P> V getIfAbsentPutWith(double key, Function<? super P,? extends V> function, P parameter)
V updateValue(double key, Function0<? extends V> factory, Function<? super V,? extends V> function)
key, apply the function to it, and replace the value. If there
is no value associated with key, start it off with a value supplied by factory.<P> V updateValueWith(double key, Function0<? extends V> factory, Function2<? super V,? super P,? extends V> function, P parameter)
updateValue(double, Function0, Function) with a Function2 and specified parameter which is
passed to the function.MutableObjectDoubleMap<V> flipUniqueValues()
DoubleObjectMapflipUniqueValues in interface DoubleObjectMap<V>MutableDoubleObjectMap<V> tap(Procedure<? super V> procedure)
RichIterablethis.
Example using a Java 8 lambda expression:
RichIterable<Person> tapped =
people.tap(person -> LOGGER.info(person.getName()));
Example using an anonymous inner class:
RichIterable<Person> tapped =
people.tap(new Procedure<Person>()
{
public void value(Person person)
{
LOGGER.info(person.getName());
}
});
tap in interface DoubleObjectMap<V>tap in interface RichIterable<V>RichIterable.each(Procedure),
RichIterable.forEach(Procedure)MutableDoubleObjectMap<V> select(DoubleObjectPredicate<? super V> predicate)
select in interface DoubleObjectMap<V>MutableDoubleObjectMap<V> reject(DoubleObjectPredicate<? super V> predicate)
reject in interface DoubleObjectMap<V>MutableDoubleObjectMap<V> withKeyValue(double key, V value)
MutableDoubleObjectMap<V> withoutKey(double key)
MutableDoubleObjectMap<V> withoutAllKeys(DoubleIterable keys)
default MutableDoubleObjectMap<V> withAllKeyValues(java.lang.Iterable<DoubleObjectPair<V>> keyValuePairs)
MutableDoubleObjectMap<V> asUnmodifiable()
MutableDoubleObjectMap<V> asSynchronized()
Copyright © 2004–2020. All rights reserved.