View Javadoc

    1   package sharin.unlinq;
    2
    3   public class BasicGrouping<K, E> extends BasicEnumerable<E> implements
    4           Grouping<K, E> {
    5
    6       private final K key;
    7
    8       public BasicGrouping(K key, Iterable<E> iterable) {
    9           super(iterable);
    10          this.key = key;
    11      }
    12
    13      public K getKey() {
    14          return key;
    15      }
    16  }