public interface DoubleObjectMap<V> extends RichIterable<V>
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(double key) |
boolean |
containsValue(Object value) |
boolean |
equals(Object o)
Follows the same general contract as
Map.equals(Object) . |
void |
forEachKey(DoubleProcedure procedure) |
void |
forEachKeyValue(DoubleObjectProcedure<? super V> procedure) |
void |
forEachValue(Procedure<? super V> procedure) |
V |
get(double key) |
V |
getIfAbsent(double key,
Function0<? extends V> ifAbsent) |
int |
hashCode()
Follows the same general contract as
Map.hashCode() . |
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() |
String |
toString()
Returns a string representation of this DoubleObjectMap.
|
Collection<V> |
values() |
aggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collect, collectBoolean, collectBoolean, collectByte, collectByte, collectChar, collectChar, collectDouble, collectDouble, collectFloat, collectFloat, collectIf, collectIf, collectInt, collectInt, collectLong, collectLong, collectShort, collectShort, collectWith, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, each, flatCollect, flatCollect, getFirst, getLast, groupBy, groupBy, groupByEach, groupByEach, groupByUniqueKey, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, isEmpty, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, partition, partitionWith, reject, reject, rejectWith, rejectWith, select, select, selectInstancesOf, selectWith, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, zip, zip, zipWithIndex, zipWithIndex
forEach, forEachWith, forEachWithIndex
forEach, iterator, spliterator
V get(double key)
boolean containsKey(double key)
boolean containsValue(Object value)
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() { public void value(Person person) { LOGGER.info(person.getName()); } });
tap
in interface RichIterable<V>
RichIterable.each(Procedure)
,
InternalIterable.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)
boolean equals(Object o)
Map.equals(Object)
.int hashCode()
Map.hashCode()
.String toString()
toString
in interface RichIterable<V>
toString
in class Object
ImmutableDoubleObjectMap<V> toImmutable()
MutableDoubleSet keySet()
Collection<V> values()
LazyDoubleIterable keysView()
RichIterable<DoubleObjectPair<V>> keyValuesView()
Copyright © 2004–2016. All rights reserved.