Java – IntSummaryStatistics Class

Java IntSummaryStatistics Class methods, constructors, variables available in Java 8 release are listed below. We will publish example program on each methods ASAP.

Constructors in Java IntSummaryStatistics Class

S.No Constructor & Description
1 IntSummaryStatistics()

Construct an empty instance with zero count, zero sum, Integer.MAX_VALUE min, Integer.MIN_VALUE max and zero average.

Methods in Java IntSummaryStatistics Class

S.No Method & Description
1 void accept(int value)

Records a new value into the summary information
2 void combine(IntSummaryStatistics other)

Combines the state of another IntSummaryStatistics into this one.
3 double getAverage()

Returns the arithmetic mean of values recorded, or zero if no values have been recorded.
4 long getCount()

Returns the count of values recorded.
5 int getMax()

Returns the maximum value recorded, or Integer.MIN_VALUE if no values have been recorded.
6 int getMin()

Returns the minimum value recorded, or Integer.MAX_VALUE if no values have been recorded.
7 long getSum()

Returns the sum of values recorded, or zero if no values have been recorded.
8 String toString()

Returns a string representation of the object.

Ask your questions in eHowToNow Forum

Post your technical, non-technical doubts, questions in our site. Get answer as soon as possible, meanwhile you can help others by answering, unanswered questions.
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers

  1. Java LinkedHashSet spliterator() method with example
  2. Java – AtomicReferenceFieldUpdater Class
  3. Java – BlockingDeque Interface
  4. Java – FutureTask Class
  5. java.util.function Package
  6. Java – RunnableScheduledFuture Interface
  7. Java – StreamSupport Class
  8. Java – Timer Class
  9. Java – AbstractQueuedSynchronizer Class
  10. Java – EventListenerProxy Class
  11. java.util.concurrent.locks Package
  12. Java – ArrayBlockingQueue Class
  13. Java ArrayList forEach() method with example
  14. Java – StampedLock Class
  15. Java – BooleanSupplier Interface

Be the first to comment

Leave a Reply