K
- the group key typeV
- the value typepublic final class GroupedIterable<K,V> extends Ix<V>
Modifier and Type | Field and Description |
---|---|
protected K |
key
The group key.
|
protected java.util.List<V> |
values
The values in the group.
|
Constructor and Description |
---|
GroupedIterable(K key)
Constructs a new grouped iterable with the given key.
|
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.
|
K |
getKey()
Returns the key associated with this group.
|
aggregate, all, any, any, argAndMax, argAndMax, argAndMin, argAndMin, averageBigDecimal, averageBigInteger, averageDouble, averageFloat, averageInt, averageLong, buffer, concat, concatWith, concatWith, concatWithAll, contains, count, countLong, defer, dematerialize, distinct, distinct, distinctNext, distinctNext, doOnCompleted, doOnNext, doWhile, empty, endWith, error, filter, filterIndexed, first, flatMap, forEach, from, from, from, fromPart, generate, groupBy, groupBy, into, isEmpty, iterator, join, just, last, map, mapIndexed, materialize, max, max, maxBy, maxBy, mayBy, mayBy, memoize, memoizeAll, min, min, minBy, minBy, minBy, minxBy, newBuilder, ofType, orderBy, orderBy, orderBy, orderBy, print, println, prune, publish, publish, range, range, removeAll, repeat, repeat, replay, replay, run, scan, scan, share, skipLast, startWith, subsequent, subsequent, sumBigDecimal, sumBigInteger, sumDouble, sumFloat, sumInt, sumIntAsDouble, sumLong, sumLongAsDouble, take, takeLast, toArray, toArray, toBuilder, toHashMap, toHashMultimap, toList, toMap, toMap, toMultimap, toObservable, toObservable, zip
protected final K key
protected final java.util.List<V> values
public GroupedIterable(K key)
key
- the group keypublic K getKey()
public void add(V value)
value
- the valuepublic void add(java.lang.Iterable<V> values)
values
- the values to add