Class DoubleSummaryStatistics

java.lang.Object
java.util.DoubleSummaryStatistics
All Implemented Interfaces:
DoubleConsumer

public class DoubleSummaryStatistics extends Object implements DoubleConsumer
The count, sum, minimum, maximum and average of the values it was given.
  • Constructor Details

    • DoubleSummaryStatistics

      public DoubleSummaryStatistics()
  • Method Details

    • accept

      public void accept(double value)
      Description copied from interface: DoubleConsumer
      Performs this operation on value.
      Specified by:
      accept in interface DoubleConsumer
      Parameters:
      value - the input
    • combine

      public void combine(DoubleSummaryStatistics other)
    • getCount

      public final long getCount()
    • getSum

      public final double getSum()
    • getMin

      public final double getMin()
    • getMax

      public final double getMax()
    • getAverage

      public final double getAverage()
    • toString

      public String toString()
      The count, sum, minimum, average and maximum, as the JDK prints them.
      Overrides:
      toString in class Object