Make Lazy.orElseGet(Supplier)
public
#2929
Labels
for: team-attention
An issue we need to discuss as a team to make progress
in: core
Issues in core support
status: waiting-for-triage
An issue we've not yet triaged
type: enhancement
A general enhancement
Milestone
A very useful method would be the
orElseGet()
method, giving you the ability to provide alternative behavior for a givenLazy
but without having to commit to the final object UNLESS invoked.Optional.orElseGet(Supplier<? extends T> supplier)
is quite handy in this respect. Parity in ourLazy
type would be quite useful.The text was updated successfully, but these errors were encountered: