Interface AggregationStrategy<V,T>

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

public interface AggregationStrategy<V,T>
Custom aggregation strategy for DataGrid 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 data container items if MetaPropertyPath of aggregation info is null
      Returns:
      aggregation result
    • getResultClass

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