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