call method

Optional<R> call(
  1. Optional<A> a,
  2. Optional<B> b
)
override

Implementation

Optional<R> call(final Optional<A> a, final Optional<B> b) {
  return a is! Present<A> && b is! Present<B> // @formatter:off
      ? of(mapper(a, b))
      : empty(); //@formatter:on
}