Class DoubleSummaryStatistics

java.lang.Object
com.landawn.abacus.util.DoubleSummaryStatistics
All Implemented Interfaces:
DoubleConsumer, Throwables.DoubleConsumer<RuntimeException>, DoubleConsumer

public class DoubleSummaryStatistics extends Object implements DoubleConsumer
  • Constructor Details

    • DoubleSummaryStatistics

      public DoubleSummaryStatistics()
    • DoubleSummaryStatistics

      public DoubleSummaryStatistics(long count, double min, double max, double sum)
      Parameters:
      count -
      min -
      max -
      sum -
  • Method Details

    • accept

      public void accept(float value)
      Parameters:
      value -
    • accept

      public void accept(double value)
      Specified by:
      accept in interface DoubleConsumer
      Specified by:
      accept in interface DoubleConsumer
      Specified by:
      accept in interface Throwables.DoubleConsumer<RuntimeException>
      Parameters:
      value -
    • combine

      public void combine(DoubleSummaryStatistics other)
      Parameters:
      other -
    • getMin

      public final double getMin()
      Gets the min.
      Returns:
    • getMax

      public final double getMax()
      Gets the max.
      Returns:
    • getCount

      public final long getCount()
      Gets the count.
      Returns:
    • getSum

      public final Double getSum()
      Gets the sum.
      Returns:
    • getAverage

      public final Double getAverage()
      Gets the average.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns: