Optional
suggest changeReturn default value if Optional is empty
Throw an exception if there is no value
Lazily provide a default value using a Supplier
Using Optional containers for primitive number types
Run code only if there is a value present
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents