ImmutablePrimitiveObjectMap<V>
, InternalIterable<V>
, Iterable<V>
, PrimitiveObjectMap<V>
, RichIterable<V>
, ShortObjectMap<V>
AbstractImmutableShortObjectMap
public interface ImmutableShortObjectMap<V> extends ShortObjectMap<V>, ImmutablePrimitiveObjectMap<V>
Modifier and Type | Method | Description |
---|---|---|
ImmutableObjectShortMap<V> |
flipUniqueValues() |
Return the ObjectShortMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
ImmutableShortObjectMap<V> |
newWithKeyValue(short key,
V value) |
|
ImmutableShortObjectMap<V> |
newWithoutAllKeys(ShortIterable keys) |
|
ImmutableShortObjectMap<V> |
newWithoutKey(short key) |
|
ImmutableShortObjectMap<V> |
reject(ShortObjectPredicate<? super V> predicate) |
|
ImmutableShortObjectMap<V> |
select(ShortObjectPredicate<? super V> predicate) |
|
ImmutableShortObjectMap<V> |
tap(Procedure<? super V> procedure) |
Executes the Procedure for each element in the iterable and returns
this . |
aggregateBy, aggregateInPlaceBy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, flatCollect, flatCollectWith, groupBy, groupByEach, groupByUniqueKey, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, zip, zipWithIndex
forEach, forEachWith, forEachWithIndex
containsValue, equals, forEachValue, hashCode, parallelStream, spliterator, stream, toString, values
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, countBy, countBy, countByEach, countByEach, countByWith, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectWith, forEach, getAny, 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, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndex
containsKey, forEachKey, forEachKeyValue, get, getIfAbsent, keySet, keysView, keyValuesView, toImmutable
ImmutableShortObjectMap<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>
tap
in interface ShortObjectMap<V>
RichIterable.each(Procedure)
,
RichIterable.forEach(Procedure)
ImmutableShortObjectMap<V> select(ShortObjectPredicate<? super V> predicate)
select
in interface ShortObjectMap<V>
ImmutableShortObjectMap<V> reject(ShortObjectPredicate<? super V> predicate)
reject
in interface ShortObjectMap<V>
ImmutableShortObjectMap<V> newWithKeyValue(short key, V value)
ImmutableShortObjectMap<V> newWithoutKey(short key)
ImmutableShortObjectMap<V> newWithoutAllKeys(ShortIterable keys)
ImmutableObjectShortMap<V> flipUniqueValues()
ShortObjectMap
flipUniqueValues
in interface ShortObjectMap<V>
Copyright © 2004–2019. All rights reserved.