Interface NumericValue

All Superinterfaces:
Comparable<ReportingExportable>, ReportingData, ReportingExportable
All Known Implementing Classes:
DateReportingData, DefaultReportingData, HasClassAttributePersistentData, OEPersistentData, PersistentData, TimeInterval, UserPersistentData

public interface NumericValue extends ReportingData
Implementing this Interface, enables ReportingData Objects to make numeric aggregations like sum and average.
  • 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

      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