public class IntSummaryStatistics extends Object implements IntConsumer
Constructor and Description |
---|
IntSummaryStatistics()
Instantiates a new int summary statistics.
|
IntSummaryStatistics(long count,
long sum,
int min,
int max)
Instantiates a new int summary statistics.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(int value) |
u.OptionalDouble |
average() |
void |
combine(IntSummaryStatistics other) |
Double |
getAverage()
Gets the average.
|
long |
getCount()
Gets the count.
|
int |
getMax()
Gets the max.
|
int |
getMin()
Gets the min.
|
Long |
getSum()
Gets the sum.
|
int |
sum() |
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
andThen
public IntSummaryStatistics()
public IntSummaryStatistics(long count, long sum, int min, int max)
count
- sum
- min
- max
- public void accept(int value)
accept
in interface Try.IntConsumer<RuntimeException>
accept
in interface IntConsumer
value
- public void combine(IntSummaryStatistics other)
other
- public final int getMin()
public final int getMax()
public final long getCount()
public final Long getSum()
public final Double getAverage()
public final int sum()
public final u.OptionalDouble average()
Copyright © 2019. All rights reserved.