Is there an elegant and streaming way in Java to say \"map this Optional to another Optional with a computed value if the value exists, else return an empty Optional\"?
You don't need the orElse clause:
orElse
Optional amount = ...; Optional myAmount = amount.map(theAmount -> FastMoney.of(theAmount, "EUR"));