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