StableValue vs Optional
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Tue Jun 17 14:51:38 UTC 2025
On 17/06/2025 15:25, Mickael Istria wrote:
> (and still believe a Supplier.cache(Supplier<T> computer) would be a
> nice addition).
Maybe I'm misunderstanding... what would be the difference between
StableValue::supplier and Supplier::cache ?
Is it a discoverability issue you are pointing out (e.g. this factory
would be more discoverable if it belonged to Supplier -- which is
something we flipped-flopped several times about) or is there more, e.g.
a semantics distinction?
Maurizio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250617/10b9e633/attachment-0001.htm>
More information about the core-libs-dev
mailing list