Interface AggregationStrategy<V,T>

Type Parameters:
T - type of aggregation result
V - type of property values or type of datasource items if AggregationInfo.Type.CUSTOM and MetaPropertyPath of aggregation info is null

public interface AggregationStrategy<V,T>
Custom aggregation strategy for Table component.
  • Method Summary

    Modifier and Type
    Method
    Description
    aggregate(Collection<V> propertyValues)
    Performs aggregation of propertyValues.
     
  • Method Details

    • aggregate

      T aggregate(Collection<V> propertyValues)
      Performs aggregation of propertyValues.
      Parameters:
      propertyValues - values of the associated MetaPropertyPath or datasource items if MetaPropertyPath of aggregation info is null
      Returns:
      aggregation result
    • getResultClass

      Class<T> getResultClass()
      Returns:
      type of result value