| 448 | } |
| 449 | |
| 450 | private static class Map<T, R> extends Continuation<T, R> { |
| 451 | private final Function<? super T, ? extends R> f; |
| 452 | |
| 453 | public Map(final Function<? super T, ? extends R> f) { |
| 454 | this.f = f; |
| 455 | } |
| 456 | |
| 457 | @Override |
| 458 | final Future<R> apply(final Future<T> result) { |
| 459 | return result.map(f); |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | @Override |
| 464 | public final <R> Future<R> map(final Function<? super T, ? extends R> f) { |
nothing calls this directly
no outgoing calls
no test coverage detected