public interface ImmutableLongObjectMap<V> extends LongObjectMap<V>, ImmutablePrimitiveObjectMap<V>
| Modifier and Type | Method and Description |
|---|---|
ImmutableObjectLongMap<V> |
flipUniqueValues()
Return the ObjectLongMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
ImmutableLongObjectMap<V> |
newWithKeyValue(long key,
V value) |
ImmutableLongObjectMap<V> |
newWithoutAllKeys(LongIterable keys) |
ImmutableLongObjectMap<V> |
newWithoutKey(long key) |
ImmutableLongObjectMap<V> |
reject(LongObjectPredicate<? super V> predicate) |
ImmutableLongObjectMap<V> |
select(LongObjectPredicate<? super V> predicate) |
ImmutableLongObjectMap<V> |
tap(Procedure<? super V> procedure)
Executes the Procedure for each element in the iterable and returns
this. |
containsKey, forEachKey, forEachKeyValue, get, getIfAbsent, keySet, keysView, keyValuesView, toImmutableaggregateBy, aggregateInPlaceBy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, flatCollect, groupBy, groupByEach, groupByUniqueKey, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, zip, zipWithIndexcontainsValue, equals, forEachValue, hashCode, parallelStream, spliterator, stream, toString, valuesallSatisfy, 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, countByWith, countByWith, 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, 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, forEach, forEachWith, forEachWithIndexImmutableLongObjectMap<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<Person>()
{
public void value(Person person)
{
LOGGER.info(person.getName());
}
});
tap in interface LongObjectMap<V>tap in interface RichIterable<V>RichIterable.each(Procedure),
InternalIterable.forEach(Procedure)ImmutableLongObjectMap<V> select(LongObjectPredicate<? super V> predicate)
select in interface LongObjectMap<V>ImmutableLongObjectMap<V> reject(LongObjectPredicate<? super V> predicate)
reject in interface LongObjectMap<V>ImmutableLongObjectMap<V> newWithKeyValue(long key, V value)
ImmutableLongObjectMap<V> newWithoutKey(long key)
ImmutableLongObjectMap<V> newWithoutAllKeys(LongIterable keys)
ImmutableObjectLongMap<V> flipUniqueValues()
LongObjectMapflipUniqueValues in interface LongObjectMap<V>Copyright © 2004–2017. All rights reserved.