InternalIterable<V>
, Iterable<V>
, PrimitiveObjectMap<V>
, RichIterable<V>
ImmutableDoubleObjectMap<V>
, MutableDoubleObjectMap<V>
AbstractImmutableDoubleObjectMap
, DoubleObjectHashMap
, SynchronizedDoubleObjectMap
, UnmodifiableDoubleObjectMap
public interface DoubleObjectMap<V> extends PrimitiveObjectMap<V>
Modifier and Type | Method | Description |
---|---|---|
boolean |
containsKey(double key) |
|
ObjectDoubleMap<V> |
flipUniqueValues() |
Return the ObjectDoubleMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
void |
forEachKey(DoubleProcedure procedure) |
|
void |
forEachKeyValue(DoubleObjectProcedure<? super V> procedure) |
|
V |
get(double key) |
|
V |
getIfAbsent(double key,
Function0<? extends V> ifAbsent) |
|
MutableDoubleSet |
keySet() |
|
LazyDoubleIterable |
keysView() |
|
RichIterable<DoubleObjectPair<V>> |
keyValuesView() |
|
DoubleObjectMap<V> |
reject(DoubleObjectPredicate<? super V> predicate) |
|
DoubleObjectMap<V> |
select(DoubleObjectPredicate<? super V> predicate) |
|
DoubleObjectMap<V> |
tap(Procedure<? super V> procedure) |
Executes the Procedure for each element in the iterable and returns
this . |
ImmutableDoubleObjectMap<V> |
toImmutable() |
forEach, forEachWith, forEachWithIndex
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsValue, equals, flatCollect, flatCollectWith, forEachValue, groupBy, groupByEach, groupByUniqueKey, hashCode, parallelStream, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, spliterator, stream, toString, values, zip, zipWithIndex
aggregateBy, aggregateInPlaceBy, allSatisfy, 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, 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, sumByDouble, sumByFloat, sumByInt, sumByLong, 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, zipWithIndex
V get(double key)
boolean containsKey(double key)
DoubleObjectMap<V> tap(Procedure<? super V> procedure)
RichIterable
this
.
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 RichIterable<V>
RichIterable.each(Procedure)
,
RichIterable.forEach(Procedure)
void forEachKey(DoubleProcedure procedure)
void forEachKeyValue(DoubleObjectProcedure<? super V> procedure)
DoubleObjectMap<V> select(DoubleObjectPredicate<? super V> predicate)
DoubleObjectMap<V> reject(DoubleObjectPredicate<? super V> predicate)
ImmutableDoubleObjectMap<V> toImmutable()
MutableDoubleSet keySet()
LazyDoubleIterable keysView()
RichIterable<DoubleObjectPair<V>> keyValuesView()
ObjectDoubleMap<V> flipUniqueValues()
IllegalStateException
- if the ObjectDoubleMap contains duplicate values.Copyright © 2004–2019. All rights reserved.