InternalIterable<V>
, java.lang.Iterable<V>
, PrimitiveObjectMap<V>
, RichIterable<V>
ImmutableCharObjectMap<V>
, MutableCharObjectMap<V>
AbstractImmutableCharObjectMap
, CharObjectHashMap
, SynchronizedCharObjectMap
, UnmodifiableCharObjectMap
public interface CharObjectMap<V> extends PrimitiveObjectMap<V>
Modifier and Type | Method | Description |
---|---|---|
boolean |
containsKey(char key) |
|
ObjectCharMap<V> |
flipUniqueValues() |
Return the ObjectCharMap that is obtained by flipping the direction of this map and making the associations
from value to key.
|
void |
forEachKey(CharProcedure procedure) |
|
void |
forEachKeyValue(CharObjectProcedure<? super V> procedure) |
|
V |
get(char key) |
|
V |
getIfAbsent(char key,
Function0<? extends V> ifAbsent) |
|
MutableCharSet |
keySet() |
|
LazyCharIterable |
keysView() |
|
RichIterable<CharObjectPair<V>> |
keyValuesView() |
|
CharObjectMap<V> |
reject(CharObjectPredicate<? super V> predicate) |
|
CharObjectMap<V> |
select(CharObjectPredicate<? super V> predicate) |
|
CharObjectMap<V> |
tap(Procedure<? super V> procedure) |
Executes the Procedure for each element in the iterable and returns
this . |
ImmutableCharObjectMap<V> |
toImmutable() |
forEach, forEach, forEachWith, forEachWithIndex
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsValue, equals, flatCollect, forEachValue, groupBy, groupByEach, groupByUniqueKey, hashCode, parallelStream, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, spliterator, stream, 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, 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, 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(char key)
boolean containsKey(char key)
CharObjectMap<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(CharProcedure procedure)
void forEachKeyValue(CharObjectProcedure<? super V> procedure)
CharObjectMap<V> select(CharObjectPredicate<? super V> predicate)
CharObjectMap<V> reject(CharObjectPredicate<? super V> predicate)
ImmutableCharObjectMap<V> toImmutable()
MutableCharSet keySet()
LazyCharIterable keysView()
RichIterable<CharObjectPair<V>> keyValuesView()
ObjectCharMap<V> flipUniqueValues()
java.lang.IllegalStateException
- if the ObjectCharMap contains duplicate values.Copyright © 2004–2017. All rights reserved.