Returns an Optional
describing the given value, if
non- null
, otherwise returns an empty Optional
.
value | the possibly- null value to describe | |
<T> | the type of the value |
Optional
with a present value if the specified value
is non- null
, otherwise an empty Optional
Diagram: Optional