public interface IntObjectMap<V> extends RichIterable<V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(int key) |
boolean |
containsValue(Object value) |
boolean |
equals(Object o)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(IntProcedure procedure) |
void |
forEachKeyValue(IntObjectProcedure<? super V> procedure) |
void |
forEachValue(Procedure<? super V> procedure) |
V |
get(int key) |
V |
getIfAbsent(int key,
Function0<? extends V> ifAbsent) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
MutableIntSet |
keySet() |
LazyIntIterable |
keysView() |
RichIterable<IntObjectPair<V>> |
keyValuesView() |
IntObjectMap<V> |
reject(IntObjectPredicate<? super V> predicate) |
IntObjectMap<V> |
select(IntObjectPredicate<? super V> predicate) |
IntObjectMap<V> |
tap(Procedure<? super V> procedure)
Executes the Procedure for each element in the iterable and returns
this. |
ImmutableIntObjectMap<V> |
toImmutable() |
String |
toString()
Returns a string representation of this IntObjectMap.
|
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, zipWithIndexforEach, forEachWith, forEachWithIndexforEach, iterator, spliteratorV get(int key)
boolean containsKey(int key)
boolean containsValue(Object value)
IntObjectMap<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()
{
public void value(Person person)
{
LOGGER.info(person.getName());
}
});
tap in interface RichIterable<V>RichIterable.each(Procedure),
InternalIterable.forEach(Procedure)void forEachKey(IntProcedure procedure)
void forEachKeyValue(IntObjectProcedure<? super V> procedure)
IntObjectMap<V> select(IntObjectPredicate<? super V> predicate)
IntObjectMap<V> reject(IntObjectPredicate<? super V> predicate)
boolean equals(Object o)
Map.equals(Object).int hashCode()
Map.hashCode().String toString()
toString in interface RichIterable<V>toString in class ObjectImmutableIntObjectMap<V> toImmutable()
MutableIntSet keySet()
Collection<V> values()
LazyIntIterable keysView()
RichIterable<IntObjectPair<V>> keyValuesView()
Copyright © 2004–2017. All rights reserved.