public interface ShortObjectMap<V> extends PrimitiveObjectMap<V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(short key) |
void |
forEachKey(ShortProcedure procedure) |
void |
forEachKeyValue(ShortObjectProcedure<? super V> procedure) |
V |
get(short key) |
V |
getIfAbsent(short key,
Function0<? extends V> ifAbsent) |
MutableShortSet |
keySet() |
LazyShortIterable |
keysView() |
RichIterable<ShortObjectPair<V>> |
keyValuesView() |
ShortObjectMap<V> |
reject(ShortObjectPredicate<? super V> predicate) |
ShortObjectMap<V> |
select(ShortObjectPredicate<? super V> predicate) |
ShortObjectMap<V> |
tap(Procedure<? super V> procedure)
Executes the Procedure for each element in the iterable and returns
this. |
ImmutableShortObjectMap<V> |
toImmutable() |
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, zipWithIndexaggregateBy, 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, min, min, minBy, 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, zipWithIndexforEach, forEachWith, forEachWithIndexforEach, iterator, spliteratorV get(short key)
boolean containsKey(short key)
ShortObjectMap<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(ShortProcedure procedure)
void forEachKeyValue(ShortObjectProcedure<? super V> procedure)
ShortObjectMap<V> select(ShortObjectPredicate<? super V> predicate)
ShortObjectMap<V> reject(ShortObjectPredicate<? super V> predicate)
ImmutableShortObjectMap<V> toImmutable()
MutableShortSet keySet()
LazyShortIterable keysView()
RichIterable<ShortObjectPair<V>> keyValuesView()
Copyright © 2004–2016. All rights reserved.