public class LongSummaryStatistics extends java.lang.Object implements LongConsumer, IntConsumer
Constructor and Description |
---|
LongSummaryStatistics() |
LongSummaryStatistics(long count,
long sum,
long min,
long max) |
Modifier and Type | Method and Description |
---|---|
void |
accept(int value) |
void |
accept(long value) |
u.OptionalDouble |
average() |
void |
combine(LongSummaryStatistics other) |
java.lang.Double |
getAverage() |
long |
getCount() |
long |
getMax() |
long |
getMin() |
java.lang.Long |
getSum() |
long |
sum() |
java.lang.String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
andThen
andThen
public LongSummaryStatistics()
public LongSummaryStatistics(long count, long sum, long min, long max)
public void accept(int value)
accept
in interface Try.IntConsumer<java.lang.RuntimeException>
accept
in interface java.util.function.IntConsumer
public void accept(long value)
accept
in interface Try.LongConsumer<java.lang.RuntimeException>
accept
in interface java.util.function.LongConsumer
public void combine(LongSummaryStatistics other)
public final long getMin()
public final long getMax()
public final long getCount()
public final java.lang.Long getSum()
public final java.lang.Double getAverage()
public final long sum()
public final u.OptionalDouble average()
public java.lang.String toString()
toString
in class java.lang.Object