/** Maps the value of a successful result using {@code func} upon arrival. */ public <R> RFuture<R> map (final Function<? super T, R> func) { Object sigh = Try.lift(func); @SuppressWarnings("unchecked") Function<Try<? super T>,Try<R>> lifted = (Function<Try<? super T>,Try<R>>)sigh; return transform(lifted); }
/** Maps the value of a successful result using {@code func} upon arrival. */ public <R> RFuture<R> map (final Function<? super T, R> func) { Object sigh = Try.lift(func); @SuppressWarnings("unchecked") Function<Try<? super T>,Try<R>> lifted = (Function<Try<? super T>,Try<R>>)sigh; return transform(lifted); }