public interface FloatObjectMap<V> extends RichIterable<V>
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(float key) |
boolean |
containsValue(Object value) |
boolean |
equals(Object o)
Follows the same general contract as
Map.equals(Object) . |
void |
forEachKey(FloatProcedure procedure) |
void |
forEachKeyValue(FloatObjectProcedure<? super V> procedure) |
void |
forEachValue(Procedure<? super V> procedure) |
V |
get(float key) |
V |
getIfAbsent(float key,
Function0<? extends V> ifAbsent) |
int |
hashCode()
Follows the same general contract as
Map.hashCode() . |
MutableFloatSet |
keySet() |
LazyFloatIterable |
keysView() |
RichIterable<FloatObjectPair<V>> |
keyValuesView() |
FloatObjectMap<V> |
reject(FloatObjectPredicate<? super V> predicate) |
FloatObjectMap<V> |
select(FloatObjectPredicate<? super V> predicate) |
FloatObjectMap<V> |
tap(Procedure<? super V> procedure)
Executes the Procedure for each element in the iterable and returns
this . |
ImmutableFloatObjectMap<V> |
toImmutable() |
String |
toString()
Returns a string representation of this FloatObjectMap.
|
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(float key)
boolean containsKey(float key)
boolean containsValue(Object value)
FloatObjectMap<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(FloatProcedure procedure)
void forEachKeyValue(FloatObjectProcedure<? super V> procedure)
FloatObjectMap<V> select(FloatObjectPredicate<? super V> predicate)
FloatObjectMap<V> reject(FloatObjectPredicate<? 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
ImmutableFloatObjectMap<V> toImmutable()
MutableFloatSet keySet()
Collection<V> values()
LazyFloatIterable keysView()
RichIterable<FloatObjectPair<V>> keyValuesView()
Copyright © 2004–2016. All rights reserved.