Package com.groiss.reporting.data
Interface NumericValue
- All Superinterfaces:
Comparable<ReportingExportable>
,ReportingData
,ReportingExportable
- All Known Implementing Classes:
DateReportingData
,DefaultReportingData
,HasClassAttributePersistentData
,OEPersistentData
,PersistentData
,TimeInterval
,UserPersistentData
Implementing this Interface, enables ReportingData Objects to make numeric aggregations like sum and average.
-
Method Summary
Modifier and TypeMethodDescriptionadd
(NumericValue v2) Adds the Values of two NumericValue Objectsavg
(long count) Calculates the average of a numeric data.Methods inherited from interface com.groiss.reporting.data.ReportingData
addClientConditionWidgetOptions, addConditionToQuery, addSelectAttributeToQuery, completeSeries, getAttribute, getEntity, getOperatorList, setAttribute, setEntity, setValue
Methods inherited from interface com.groiss.reporting.export.ReportingExportable
compareTo, getColumnRenderer, getSortText, getValue, setValue, toJson, toText
-
Method Details
-
add
Adds the Values of two NumericValue Objects- Parameters:
v2
- the second NumericValue to add- Returns:
- the Object with the added NumericValue
-
avg
Calculates the average of a numeric data.- Parameters:
count
- the amount of NumericValue Objects- Returns:
- a NumericValue Object containing the average value
-