Class DoubleSummaryStatistics
java.lang.Object
java.util.DoubleSummaryStatistics
- All Implemented Interfaces:
DoubleConsumer
The count,
sum, minimum, maximum and average of the values it was given.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(double value) Performs this operation onvalue.voidcombine(DoubleSummaryStatistics other) final doublefinal longgetCount()final doublegetMax()final doublegetMin()final doublegetSum()toString()The count, sum, minimum, average and maximum, as the JDK prints them.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DoubleConsumer
andThen
-
Constructor Details
-
DoubleSummaryStatistics
public DoubleSummaryStatistics()
-
-
Method Details
-
accept
public void accept(double value) Description copied from interface:DoubleConsumerPerforms this operation onvalue.- Specified by:
acceptin interfaceDoubleConsumer- Parameters:
value- the input
-
combine
-
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
-