com.groiss.reporting.data
Interface NumericValue

All Superinterfaces:
java.lang.Comparable<ReportingExportable>, ReportingData, ReportingExportable

public interface NumericValue
extends ReportingData

Implementing this Interface, enables ReportingData Objects to make numeric aggregations like sum and average.


Method Summary
 NumericValue add(NumericValue v2)
          Adds the Values of two NumericValue Objects
 NumericValue avg(long count)
          Calculates the average of a numeric data.
 
Methods inherited from interface com.groiss.reporting.data.ReportingData
addConditionToQuery, addParamAtExecuteRow, addSelectAttributeToQuery, getAttribute, getAttributePage, getConditionPage, getEntity, setAttribute, setEntity, setValue
 
Methods inherited from interface com.groiss.reporting.export.ReportingExportable
compareTo, getValue, setValue, toHtml, toText
 

Method Detail

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


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.