flatMap<R> abstract method

Optional<R> flatMap<R>(
  1. Optional<R> mapper(
    1. T
    )
)

Returns an Optional provided by applying the mapper to this Optional's value, if present. Otherwise, returns an empty Optional.

Implementation

Optional<R> flatMap<R>(Optional<R> Function(T) mapper);