Class DateTimeAggregation
java.lang.Object
io.jmix.flowui.data.aggregation.impl.AbstractAggregation<Date>
io.jmix.flowui.data.aggregation.impl.DateTimeAggregation
- All Implemented Interfaces:
Aggregation<Date>
Implementation of
Aggregation intended for aggregating date-time values.-
Field Summary
Fields inherited from class io.jmix.flowui.data.aggregation.impl.AbstractAggregation
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of aggregation types that are supported by this class.max(Collection<Date> items) Determines the maximum value in the provided collection of items.min(Collection<Date> items) Determines the minimum value in the provided collection of items.Methods inherited from class io.jmix.flowui.data.aggregation.impl.AbstractAggregation
avg, count, getResultClass, sum
-
Constructor Details
-
DateTimeAggregation
public DateTimeAggregation()
-
-
Method Details
-
min
Description copied from interface:AggregationDetermines the minimum value in the provided collection of items.- Specified by:
minin interfaceAggregation<Date>- Overrides:
minin classAbstractAggregation<Date>- Parameters:
items- the collection of items to evaluate for the minimum value- Returns:
- the minimum value from the collection, or
nullif the collection is empty
-
max
Description copied from interface:AggregationDetermines the maximum value in the provided collection of items.- Specified by:
maxin interfaceAggregation<Date>- Overrides:
maxin classAbstractAggregation<Date>- Parameters:
items- the collection of items to evaluate for the maximum value- Returns:
- the maximum value from the collection, or
nullif the collection is empty
-
getSupportedAggregationTypes
Description copied from interface:AggregationReturns the set of aggregation types that are supported by this class.- Specified by:
getSupportedAggregationTypesin interfaceAggregation<Date>- Overrides:
getSupportedAggregationTypesin classAbstractAggregation<Date>- Returns:
- a set of supported aggregation types
-