fix(util): ObjectListAggregator syntax

This commit is contained in:
tueem 2025-03-16 02:48:24 +01:00
parent 78cacb7eb6
commit e3fc10a1ce
Signed by: tueem
GPG Key ID: 65C8667EC17A88FB

View File

@ -5,7 +5,7 @@ import java.util.function.Function;
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,
(l, o) -> l.add(valueConsumer.apply(o)),
() -> new ArrayList<>());