Package com.landawn.abacus.util
Class DoubleSummaryStatistics
java.lang.Object
com.landawn.abacus.util.DoubleSummaryStatistics
- All Implemented Interfaces:
DoubleConsumer
,Throwables.DoubleConsumer<RuntimeException>
,DoubleConsumer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(double value) void
accept
(float value) void
combine
(DoubleSummaryStatistics other) final Double
Gets the average.final long
getCount()
Gets the count.final double
getMax()
Gets the max.final double
getMin()
Gets the min.final Double
getSum()
Gets the sum.toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.landawn.abacus.util.function.DoubleConsumer
andThen
-
Constructor Details
-
DoubleSummaryStatistics
public DoubleSummaryStatistics() -
DoubleSummaryStatistics
public DoubleSummaryStatistics(long count, double min, double max, double sum)
-
-
Method Details
-
accept
public void accept(float value) - Parameters:
value
-
-
accept
public void accept(double value) - Specified by:
accept
in interfaceDoubleConsumer
- Specified by:
accept
in interfaceDoubleConsumer
- Specified by:
accept
in interfaceThrowables.DoubleConsumer<RuntimeException>
- Parameters:
value
-
-
combine
- 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
Gets the sum.- Returns:
-
getAverage
Gets the average.- Returns:
-
toString
-