DoubleSummaryStatistics (Java SE 26 & JDK 26)
- All Implemented Interfaces:
DoubleConsumer
-
Constructor Summary
Constructors
Constructs an empty instance with zero count, zero sum,
Double.POSITIVE_INFINITYmin,Double.NEGATIVE_INFINITYmax and zero average.DoubleSummaryStatistics(long count, double min, double max, double sum) Constructs a non-empty instance with the specified
count,min,max, andsum. -
Method Summary
voidaccept(double value) Records another value into the summary information.
voidCombines the state of another
DoubleSummaryStatisticsinto this one.final doubleReturns the arithmetic mean of values recorded, or zero if no values have been recorded.
final longgetCount()Return the count of values recorded.
final doublegetMax()Returns the maximum recorded value,
Double.NaNif any recorded value was NaN orDouble.NEGATIVE_INFINITYif no values were recorded.final doublegetMin()Returns the minimum recorded value,
Double.NaNif any recorded value was NaN orDouble.POSITIVE_INFINITYif no values were recorded.final doublegetSum()Returns the sum of values recorded, or zero if no values have been recorded.
toString()Returns a non-empty string representation of this object suitable for debugging.
Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitCreates and returns a copy of this object.
booleanIndicates whether some other object is "equal to" this one.
protected voidDeprecated, for removal: This API element is subject to removal in a future version.
Returns the runtime class of this
Object.intReturns a hash code value for this object.
final voidWakes up a single thread that is waiting on this object's monitor.
final voidWakes up all threads that are waiting on this object's monitor.
final voidCauses the current thread to wait until it is awakened, typically by being notified or interrupted.
final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
Methods declared in interface DoubleConsumer
Returns a composed
DoubleConsumerthat performs, in sequence, this operation followed by theafteroperation.
-
Constructor Details
-
DoubleSummaryStatistics
-
DoubleSummaryStatistics
-
-
Method Details
-
accept
-
combine
-
getCount
-
getSum
-
getMin
-
getMax
-
getAverage
-
toString
-