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

    Modifier and Type
    Method
    Description
    default DSTTYPE
    apply(SRCTYPE... aObjects)
    Aggregate a array of input objects to a single output object.

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose
  • Method Details

    • apply

      @Nullable default DSTTYPE apply(@Nullable SRCTYPE... aObjects)
      Aggregate a array of input objects to a single output object.
      Parameters:
      aObjects - Source object array. May not be null.
      Returns:
      The aggregated object. May be null.