Optional.of
Description:
Creates an optional instance with the given value present.
Parameters:
value |
the value to be present, which can be null if nullable type |
Creates an optional instance with the given value present.
value |
the value to be present, which can be null if nullable type |