It's possible to extract the state from a Int/Long/DoubleSummaryStatistics with the getter methods, but it is not directly possible to reconstruct a new instance from that state (there are round about ways to do that which are not recommended by clever use of accepting and combining).
These classes need public constructors that accept argument values representing the state that is returned by the getters.
With such constructors its possible for third parties to independently serialize the state.
It is not proposed to make these classes non-final and/or serializable.
These classes need public constructors that accept argument values representing the state that is returned by the getters.
With such constructors its possible for third parties to independently serialize the state.
It is not proposed to make these classes non-final and/or serializable.
- csr for
-
JDK-8190381 public state constructors for Int/Long/DoubleSummaryStatistics
-
- Closed
-
- relates to
-
JDK-8190517 Allow DoubleSummaryStatistics constructor to accept additional state
-
- Closed
-