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

Class Transform

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

Source from the content-addressed store, hash-verified

500 }
501
502 private static class Transform<T, R> extends Continuation<T, R> {
503 private final Transformer<? super T, ? extends R> t;
504
505 public Transform(final Transformer<? super T, ? extends R> t) {
506 this.t = t;
507 }
508
509 @Override
510 final Future<R> apply(final Future<T> result) {
511 return result.transform(t);
512 }
513 }
514
515 @Override
516 public <R> Future<R> transform(final Transformer<? super T, ? extends R> t) {

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…