public static <T> Optional<T> ofNullable (T value)

Returns an Optional describing the given value, if non- null, otherwise returns an empty Optional.

Parameters:
value    the possibly- null value to describe
<T>    the type of the value

Returns:  an Optional with a present value if the specified value is non- null, otherwise an empty Optional