K - Key typeV - Value typeclass LookupImpl<K,V> extends AbstractEnumerable<Grouping<K,V>> implements Lookup<K,V>
Lookup that uses an underlying map.| Constructor and Description |
|---|
LookupImpl(Map<K,List<V>> map)
Creates a MultiMapImpl.
|
| Modifier and Type | Method and Description |
|---|---|
<TResult> Enumerable<TResult> |
applyResultSelector(Function2<K,Enumerable<V>,TResult> resultSelector)
Applies a transform function to each key and its associated values and
returns the results.
|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,Enumerable<V>>> |
entrySet() |
Enumerator<Grouping<K,V>> |
enumerator()
Returns an enumerator that iterates through a collection.
|
Enumerable<V> |
get(Object key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
Enumerable<V> |
put(K key,
Enumerable<V> value) |
void |
putAll(Map<? extends K,? extends Enumerable<V>> m) |
Enumerable<V> |
remove(Object key) |
int |
size() |
Collection<Enumerable<V>> |
values() |
Enumerable<V> |
valuesEnumerable()
Returns an enumerable over the values in this lookup, in map order.
|
iteratoraggregate, aggregate, aggregate, all, any, any, asEnumerable, asOrderedQueryable, asQueryable, average, average, average, average, average, average, average, average, average, average, cast, concat, contains, contains, correlateJoin, count, count, createOrderedEnumerable, defaultIfEmpty, defaultIfEmpty, distinct, distinct, elementAt, elementAtOrDefault, except, except, first, first, firstOrDefault, firstOrDefault, foreach, getThis, getThisOrdered, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupJoin, groupJoin, hashJoin, hashJoin, hashJoin, hashJoin, intersect, intersect, into, last, last, lastOrDefault, lastOrDefault, longCount, longCount, max, max, max, max, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, min, min, min, min, ofType, orderBy, orderBy, orderByDescending, orderByDescending, removeAll, reverse, select, select, selectMany, selectMany, selectMany, selectMany, sequenceEqual, sequenceEqual, single, single, singleOrDefault, singleOrDefault, skip, skipWhile, skipWhile, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, take, takeWhile, takeWhile, thenBy, thenBy, thenByDescending, thenByDescending, toList, toLookup, toLookup, toLookup, toLookup, toMap, toMap, toMap, toMap, union, union, where, where, zipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllasQueryableforEach, iterator, spliteratoraggregate, aggregate, aggregate, all, any, any, asEnumerable, average, average, average, average, average, average, average, average, average, average, cast, concat, contains, contains, correlateJoin, count, count, defaultIfEmpty, defaultIfEmpty, distinct, distinct, elementAt, elementAtOrDefault, except, except, first, first, firstOrDefault, firstOrDefault, foreach, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupJoin, groupJoin, hashJoin, hashJoin, hashJoin, hashJoin, intersect, intersect, into, last, last, lastOrDefault, lastOrDefault, longCount, longCount, max, max, max, max, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, min, min, min, min, ofType, orderBy, orderBy, orderByDescending, orderByDescending, removeAll, reverse, select, select, selectMany, selectMany, selectMany, selectMany, sequenceEqual, sequenceEqual, single, single, singleOrDefault, singleOrDefault, skip, skipWhile, skipWhile, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, take, takeWhile, takeWhile, toList, toLookup, toLookup, toLookup, toLookup, toMap, toMap, toMap, toMap, union, union, where, where, zippublic Enumerator<Grouping<K,V>> enumerator()
RawEnumerableenumerator in interface RawEnumerable<Grouping<K,V>>public int size()
size in interface Map<K,Enumerable<V>>public boolean isEmpty()
isEmpty in interface Map<K,Enumerable<V>>public boolean containsKey(Object key)
containsKey in interface Map<K,Enumerable<V>>public boolean containsValue(Object value)
containsValue in interface Map<K,Enumerable<V>>public Enumerable<V> get(Object key)
get in interface Map<K,Enumerable<V>>public Enumerable<V> put(K key, Enumerable<V> value)
put in interface Map<K,Enumerable<V>>public Enumerable<V> remove(Object key)
remove in interface Map<K,Enumerable<V>>public void putAll(Map<? extends K,? extends Enumerable<V>> m)
putAll in interface Map<K,Enumerable<V>>public void clear()
clear in interface Map<K,Enumerable<V>>public Collection<Enumerable<V>> values()
values in interface Map<K,Enumerable<V>>public Set<Map.Entry<K,Enumerable<V>>> entrySet()
entrySet in interface Map<K,Enumerable<V>>public <TResult> Enumerable<TResult> applyResultSelector(Function2<K,Enumerable<V>,TResult> resultSelector)
LookupapplyResultSelector in interface Lookup<K,V>TResult - Result typeresultSelector - Result selectorpublic Enumerable<V> valuesEnumerable()
Copyright © 2012–2021 The Apache Software Foundation. All rights reserved.