com.groiss.reporting.data
Interface NumericValue
- All Superinterfaces:
- java.lang.Comparable, ReportingData, ReportingExportable
public interface NumericValue
- extends ReportingData
Implementing this Interface, enables ReportingData Objects to make numeric aggregations like sum and average.
| Methods inherited from interface java.lang.Comparable |
compareTo |
add
NumericValue add(NumericValue v2)
- Adds the Values of two NumericValue Objects
- Parameters:
v2 - the second NumericValue to add
- Returns:
- the Object with the added NumericValue
avg
NumericValue avg(long count)
- Calculates the average of a numeric data.
- Parameters:
count - the amount of NumericValue Objects
- Returns:
- a NumericValue Object containing the average value
Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.