Interface Aggregator<T>

  • Type Parameters:
    T - the type of values being aggregated (e.g., Double).
    All Known Implementing Classes:
    MeanAggregator

    public interface Aggregator<T>
    Aggregates added values into one "aggregate" measure.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addValue​(T value)
      Adds value to the group of values being aggregated.
      T getAggregate()
      Returns the aggregate measure of all added values.
      long getCount()
      Returns the number of values that are aggregated.
      void reset()
      Remove all added values from the group of values being aggregated.
    • Method Detail

      • addValue

        void addValue​(T value)
        Adds value to the group of values being aggregated.
      • getAggregate

        T getAggregate()
        Returns the aggregate measure of all added values.
      • getCount

        long getCount()
        Returns the number of values that are aggregated.
      • reset

        void reset()
        Remove all added values from the group of values being aggregated.