Constructor and Description |
---|
SequentialStreamAggregator(Comparator<T> comp) |
Modifier and Type | Method and Description |
---|---|
Stream<T> |
apply(Stream<T> inner)
Apply the function to the input argument and return the result.
|
abstract T |
combine(List<T> window)
Called when a window of identical items needs to be combined
|
public SequentialStreamAggregator(Comparator<T> comp)
comp
- the comparator for decided whether sequential items are the same