Class Aggregators.AvgConsumer

    • Field Detail

      • sum

        public double sum
      • unit

        public IUnit unit
      • count

        public int count
    • Method Detail

      • consume

        public void consume​(IItem item)
        Description copied from interface: IItemConsumer
        Consumes another item.
      • merge

        public Aggregators.AvgConsumer merge​(Aggregators.AvgConsumer other)
        Description copied from interface: IItemConsumer
        Merges this object with the supplied object. Normally this is another item consumer of the same type and the output result is a consumer with an internal state that reflects the state of both the current consumer and the input value.
        Parameters:
        other - another instance to merge with
        Returns:
        the merged instance