| 552 | } |
| 553 | |
| 554 | private static class BiMap<T, U, R> extends Continuation<T, R> { |
| 555 | private final BiFunction<? super T, ? super U, ? extends R> f; |
| 556 | private final Future<U> other; |
| 557 | |
| 558 | public BiMap(final Future<U> other, final BiFunction<? super T, ? super U, ? extends R> f) { |
| 559 | this.other = other; |
| 560 | this.f = f; |
| 561 | } |
| 562 | |
| 563 | @Override |
| 564 | final Future<R> apply(final Future<T> result) { |
| 565 | return result.biMap(other, f); |
| 566 | } |
| 567 | } |
| 568 | |
| 569 | @Override |
| 570 | public <U, R> Future<R> biMap(final Future<U> other, final BiFunction<? super T, ? super U, ? extends R> f) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…