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
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers
- Java – Spliterator.OfLong Interface
- Java ArrayList toArray() method with example
- Java – ToDoubleFunction Interface
- Java – GregorianCalendar Class
- Java – Delayed Interface
- Java – PrimitiveIterator.OfInt Interface
- Java – Date Class
- Java – Locale.LanguageRange Class
- Java – ReentrantReadWriteLock Class
- Java – Objects Class in Util Package
- Java – Comparator Interface
- Java – ArrayDeque Class
- Java – ThreadPoolExecutor Class
- Java – Map Interface
- Java – LongFunction Interface
Leave a Reply
You must be logged in to post a comment.