Package io.jmix.flowui.data.aggregation
Interface AggregationStrategy<V,T>
- Type Parameters:
T
- type of aggregation resultV
- type of property values or type of data container items ifAggregationInfo.Type.CUSTOM
andMetaPropertyPath
of aggregation info is null
public interface AggregationStrategy<V,T>
Custom aggregation strategy for
DataGrid
component.-
Method Summary
Modifier and TypeMethodDescriptionaggregate
(Collection<V> propertyValues) Performs aggregation ofpropertyValues
.
-
Method Details
-
aggregate
Performs aggregation ofpropertyValues
.- Parameters:
propertyValues
- values of the associatedMetaPropertyPath
or data container items ifMetaPropertyPath
of aggregation info is null- Returns:
- aggregation result
-
getResultClass
- Returns:
- type of result value
-