Optional.of


Description:

public Optional.of (owned G value)

Creates an optional instance with the given value present.

Parameters:

value

the value to be present, which can be null if nullable type