Class DefaultSimpleStat

  • All Implemented Interfaces:
    SimpleStat

    public class DefaultSimpleStat
    extends java.lang.Object
    implements SimpleStat
    A default SimpleStat implementation.
    Since:
    9.4
    Author:
    Pedro Ruivo
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long count()  
      long getAverage​(long defaultValue)  
      long getMax​(long defaultValue)  
      long getMin​(long defaultValue)  
      void record​(long value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultSimpleStat

        public DefaultSimpleStat()
    • Method Detail

      • record

        public void record​(long value)
        Specified by:
        record in interface SimpleStat
      • getMin

        public long getMin​(long defaultValue)
        Specified by:
        getMin in interface SimpleStat
      • getMax

        public long getMax​(long defaultValue)
        Specified by:
        getMax in interface SimpleStat
      • getAverage

        public long getAverage​(long defaultValue)
        Specified by:
        getAverage in interface SimpleStat
      • count

        public long count()
        Specified by:
        count in interface SimpleStat