Package com.landawn.abacus.util
Class ShortSummaryStatistics
java.lang.Object
com.landawn.abacus.util.ShortSummaryStatistics
- All Implemented Interfaces:
ShortConsumer
,Throwables.ShortConsumer<RuntimeException>
-
Constructor Details
-
ShortSummaryStatistics
public ShortSummaryStatistics() -
ShortSummaryStatistics
public ShortSummaryStatistics(long count, short min, short max, long sum) - Parameters:
count
-min
-max
-sum
-
-
-
Method Details
-
accept
public void accept(short value) - Specified by:
accept
in interfaceShortConsumer
- Specified by:
accept
in interfaceThrowables.ShortConsumer<RuntimeException>
- Parameters:
value
-
-
combine
- Parameters:
other
-
-
getMin
public final short getMin()Gets the min.- Returns:
-
getMax
public final short 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
-