Class ShortSummaryStatistics

java.lang.Object
com.landawn.abacus.util.ShortSummaryStatistics
All Implemented Interfaces:
ShortConsumer, Throwables.ShortConsumer<RuntimeException>

public class ShortSummaryStatistics extends Object implements ShortConsumer
  • 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 interface ShortConsumer
      Specified by:
      accept in interface Throwables.ShortConsumer<RuntimeException>
      Parameters:
      value -
    • combine

      public void combine(ShortSummaryStatistics other)
      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

      public final Long getSum()
      Gets the sum.
      Returns:
    • getAverage

      public final Double getAverage()
      Gets the average.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns: