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
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers
- Java LinkedHashSet spliterator() method with example
- Java – AtomicReferenceFieldUpdater Class
- Java – BlockingDeque Interface
- Java – FutureTask Class
- java.util.function Package
- Java – RunnableScheduledFuture Interface
- Java – StreamSupport Class
- Java – Timer Class
- Java – AbstractQueuedSynchronizer Class
- Java – EventListenerProxy Class
- java.util.concurrent.locks Package
- Java – ArrayBlockingQueue Class
- Java ArrayList forEach() method with example
- Java – StampedLock Class
- Java – BooleanSupplier Interface
Leave a Reply
You must be logged in to post a comment.