Interface Lookup<K,V>

Type Parameters:
K - Key type
V - Value type
All Superinterfaces:
Enumerable<Grouping<K,V>>, ExtendedEnumerable<Grouping<K,V>>, Iterable<Grouping<K,V>>, Map<K,Enumerable<V>>, RawEnumerable<Grouping<K,V>>

public interface Lookup<K,V> extends Map<K,Enumerable<V>>, Enumerable<Grouping<K,V>>
Represents a collection of keys each mapped to one or more values.
  • Method Details

    • applyResultSelector

      <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.
      Type Parameters:
      TResult - Result type
      resultSelector - Result selector
      Enumerable over results