Class AverageClosure<T>

  • All Implemented Interfaces:
    org.apache.commons.collections4.Closure<T>

    public abstract class AverageClosure<T>
    extends java.lang.Object
    implements org.apache.commons.collections4.Closure<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      AverageClosure()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(double value)  
      double getAverage()  
      int getCount()  
      double getSum()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.commons.collections4.Closure

        execute
    • Constructor Detail

      • AverageClosure

        public AverageClosure()
    • Method Detail

      • getAverage

        public double getAverage()
      • getSum

        public double getSum()
      • getCount

        public int getCount()
      • add

        public void add​(double value)