Package com.helger.commons.aggregate
Interface IAggregator<SRCTYPE,DSTTYPE>
- Type Parameters:
SRCTYPE- The input type.DSTTYPE- The output type.
- All Superinterfaces:
Function<Collection<SRCTYPE>,DSTTYPE>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface IAggregator<SRCTYPE,DSTTYPE>
extends Function<Collection<SRCTYPE>,DSTTYPE>
Aggregate a list of input objects to a single output object (change n to 1).
- Author:
- Philip Helger
-
Method Summary
-
Method Details
-
apply
Aggregate a array of input objects to a single output object.- Parameters:
aObjects- Source object array. May not benull.- Returns:
- The aggregated object. May be
null.
-