MCPcopy Create free account
hub / github.com/traneio/future / BiMap

Class BiMap

future-java/src/main/java/io/trane/future/Promise.java:554–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…