K - the key typeV - the value typepublic class DefaultGroupedIterable<K,V> extends java.lang.Object implements GroupedIterable<K,V>
LinkedList.| Constructor and Description |
|---|
DefaultGroupedIterable(K key)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Iterable<V> values)
Add the values of the target iterable.
|
void |
add(V value)
Adds one element to the values.
|
java.util.Iterator<V> |
iterator() |
K |
key() |
public DefaultGroupedIterable(K key)
key - the group keypublic K key()
key in interface GroupedIterable<K,V>public java.util.Iterator<V> iterator()
iterator in interface java.lang.Iterable<V>public void add(V value)
value - the valuepublic void add(java.lang.Iterable<V> values)
values - the values to add