fromOptional

Create container with specified item or empty container if item is null.

Return

container with specified item or empty container if item is null

Parameters

item

item for containing