map<R> abstract method

Optional<R> map<R>(
  1. Map1<T, R> function
)

Transforms the present value of this Optional with the provided mapping function, otherwise returns an absent Optional.

Implementation

Optional<R> map<R>(Map1<T, R> function);