Java – DoubleSummaryStatistics Class

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

Constructors in Java DoubleSummaryStatistics Class

S.No Constructor & Description
1 DoubleSummaryStatistics()

Construct an empty instance with zero count, zero sum, Double.POSITIVE_INFINITY min, Double.NEGATIVE_INFINITY max and zero average.

Methods in Java DoubleSummaryStatistics Class

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

Records another value into the summary information.
2 void combine(DoubleSummaryStatistics other)

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

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

Return the count of values recorded.
5 double getMax()

Returns the maximum recorded value, Double.NaN if any recorded value was NaN or Double.NEGATIVE_INFINITY if no values were recorded.
6 double getMin()

Returns the minimum recorded value, Double.NaN if any recorded value was NaN or Double.POSITIVE_INFINITY if no values were recorded.
7 double 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 – Spliterator.OfLong Interface
  2. Java ArrayList toArray() method with example
  3. Java – ToDoubleFunction Interface
  4. Java – GregorianCalendar Class
  5. Java – Delayed Interface
  6. Java – PrimitiveIterator.OfInt Interface
  7. Java – Date Class
  8. Java – Locale.LanguageRange Class
  9. Java – ReentrantReadWriteLock Class
  10. Java – Objects Class in Util Package
  11. Java – Comparator Interface
  12. Java – ArrayDeque Class
  13. Java – ThreadPoolExecutor Class
  14. Java – Map Interface
  15. Java – LongFunction Interface

Be the first to comment

Leave a Reply