All Implemented Interfaces:
IntConsumer, LongConsumer

  • Constructor Summary

    Constructors

    Constructs an empty instance with zero count, zero sum, Long.MAX_VALUE min, Long.MIN_VALUE max and zero average.

    LongSummaryStatistics(long count, long min, long max, long sum)

    Constructs a non-empty instance with the specified count, min, max, and sum.

  • Method Summary

    void

    accept(int value)

    Records a new int value into the summary information.

    void

    accept(long value)

    Records a new long value into the summary information.

    void

    Combines the state of another LongSummaryStatistics into this one.

    final double

    Returns the arithmetic mean of values recorded, or zero if no values have been recorded.

    final long

    getCount()

    Returns the count of values recorded.

    final long

    getMax()

    Returns the maximum value recorded, or Long.MIN_VALUE if no values have been recorded

    final long

    getMin()

    Returns the minimum value recorded, or Long.MAX_VALUE if no values have been recorded.

    final long

    getSum()

    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, wait

    Creates and returns a copy of this object.

    boolean

    Indicates whether some other object is "equal to" this one.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    int

    Returns a hash code value for this object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(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 void

    wait(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 IntConsumer

    andThen

    Returns a composed IntConsumer that performs, in sequence, this operation followed by the after operation.

    Methods declared in interface LongConsumer

    andThen

    Returns a composed LongConsumer that performs, in sequence, this operation followed by the after operation.

  • Constructor Details

    • LongSummaryStatistics

    • LongSummaryStatistics

  • Method Details

    • accept

    • accept

    • combine

    • getCount

    • getSum

    • getMin

    • getMax

    • getAverage

    • toString