Class IntSummaryStatistics
java.lang.Object
java.util.IntSummaryStatistics
- All Implemented Interfaces:
IntConsumer
The count,
sum, minimum, maximum and average of the values it was given.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(int value) Performs this operation onvalue.voidcombine(IntSummaryStatistics other) final doublefinal longgetCount()final intgetMax()final intgetMin()final longgetSum()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 IntConsumer
andThen
-
Constructor Details
-
IntSummaryStatistics
public IntSummaryStatistics()
-
-
Method Details
-
accept
public void accept(int value) Description copied from interface:IntConsumerPerforms this operation onvalue.- Specified by:
acceptin interfaceIntConsumer- Parameters:
value- the input
-
combine
-
getCount
public final long getCount() -
getSum
public final long getSum() -
getMin
public final int getMin() -
getMax
public final int getMax() -
getAverage
public final double getAverage() -
toString
-