InternalIterable<V>
, Iterable<V>
, PrimitiveObjectMap<V>
, RichIterable<V>
ImmutableIntObjectMap<V>
, MutableIntObjectMap<V>
AbstractImmutableIntObjectMap
, IntObjectHashMap
, SynchronizedIntObjectMap
, UnmodifiableIntObjectMap
public interface IntObjectMap<V> extends PrimitiveObjectMap<V>
Modifier and Type | Method | Description |
---|---|---|
boolean |
containsKey(int key) |
|
void |
forEachKey(IntProcedure procedure) |
|
void |
forEachKeyValue(IntObjectProcedure<? super V> procedure) |
|
V |
get(int key) |
|
V |
getIfAbsent(int key,
Function0<? extends V> ifAbsent) |
|
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() |
forEach, forEachWith, forEachWithIndex
forEach, iterator, spliterator
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsValue, equals, flatCollect, forEachValue, groupBy, groupByEach, groupByUniqueKey, hashCode, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, 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, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, 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, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndex
V get(int key)
boolean containsKey(int key)
IntObjectMap<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)
,
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)
ImmutableIntObjectMap<V> toImmutable()
MutableIntSet keySet()
LazyIntIterable keysView()
RichIterable<IntObjectPair<V>> keyValuesView()
Copyright © 2004–2017. All rights reserved.