flatMap<R> abstract method
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);