Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public class DoubleSummaryStatistics

  1. Object
  2. DoubleSummaryStatistics

ImplementsDoubleConsumer

The count, sum, minimum, maximum and average of the values it was given.

Constructors

public DoubleSummaryStatistics()

Methods

public void accept(double value)Performs this operation on value.
public void combine(DoubleSummaryStatistics other)
public final long getCount()
public final double getSum()
public final double getMin()
public final double getMax()
public final double getAverage()
public String toString()The count, sum, minimum, average and maximum, as the JDK prints them.

Inherited methods

Constructor details

DoubleSummaryStatistics

public DoubleSummaryStatistics()

Method details

accept

public void accept(double value)
Performs this operation on value.

Parameters

value double
the input

combine

public void combine(DoubleSummaryStatistics other)

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

public String toString()
The count, sum, minimum, average and maximum, as the JDK prints them.