orElse abstract method

T orElse(
  1. T other
)

Returns this Optional's value, if present. Otherwise, returns other.

Implementation

T orElse(T other);