Interface SimpleStat

All Known Implementing Classes:
DefaultSimpleStat, SimpleStateWithTimer

public interface SimpleStat
A simple statistic recorder that computes the average, minimum and maximum value observed.
Since:
10.0
Author:
Pedro Ruivo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SimpleStat
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
     
    default long
    getAverage(long defaultValue)
     
    default long
    getMax(long defaultValue)
     
    default long
    getMin(long defaultValue)
     
    default boolean
     
    default void
    record(long value)
     
    default void
     
    default void
     
  • Field Details

  • Method Details

    • record

      default void record(long value)
    • getMin

      default long getMin(long defaultValue)
    • getMax

      default long getMax(long defaultValue)
    • getAverage

      default long getAverage(long defaultValue)
    • count

      default long count()
    • isEmpty

      default boolean isEmpty()
    • setTimer

      default void setTimer(TimerTracker timer)
    • reset

      default void reset()