fix(util): ObjectListAggregator syntax
This commit is contained in:
parent
78cacb7eb6
commit
e3fc10a1ce
@ -5,7 +5,7 @@ import java.util.function.Function;
|
|||||||
|
|
||||||
public class ObjectListAggregator<O, K, V> extends ObjectAggregator<O, K, ArrayList<V>> {
|
public class ObjectListAggregator<O, K, V> extends ObjectAggregator<O, K, ArrayList<V>> {
|
||||||
|
|
||||||
public ObjectListAggregator(Function<O, K> keySupplier, Function<O, V> valueConsumer) {
|
public ObjectListAggregator(Function<O, Iterable<K>> keySupplier, Function<O, V> valueConsumer) {
|
||||||
super(keySupplier,
|
super(keySupplier,
|
||||||
(l, o) -> l.add(valueConsumer.apply(o)),
|
(l, o) -> l.add(valueConsumer.apply(o)),
|
||||||
() -> new ArrayList<>());
|
() -> new ArrayList<>());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user