Interface AggregatesInterface<T extends Serializable,AVG_T extends Serializable>

All Known Implementing Classes:
BigDecimalAggregates, InstantAggregates, IntegerAggregates, LocalDateAggregates, LongAggregates, StringAggregates

public interface AggregatesInterface<T extends Serializable,AVG_T extends Serializable>
Classes that support doing data aggregations (e.g., count, sum, min, max, average). Sub-classes should supply the type parameter. The AVG_T parameter describes the type used for the average getAverage method which, e.g, for date types, might be a date, vs. numbers, they'd probably be BigDecimal.
  • Method Details

    • add

      void add(T t)
    • getCount

      int getCount()
    • getSum

      T getSum()
    • getMin

      T getMin()
    • getMax

      T getMax()
    • getAverage

      AVG_T getAverage()
    • getProduct

      default BigDecimal getProduct()
    • getVariance

      default BigDecimal getVariance()
    • getVarP

      default BigDecimal getVarP()
    • getStandardDeviation

      default BigDecimal getStandardDeviation()
    • getStdDevP

      default BigDecimal getStdDevP()