Optional.of


Description:

public Optional.of (owned T value)

Creates an optional from a non-null value. It is an assertion failure to provide a null value.

Parameters:

value

The non-null value.