MCPcopy Create free account
hub / github.com/antlr/codebuff / transform

Method transform

output/java_guava/1.4.17/Futures.java:597–599  ·  view source on GitHub ↗

Returns a new Future whose result is derived from the result of the given Future. If input fails, the returned Future fails with the same exception (and the function is not invoked). Example usage: {@code ListenableFuture queryFuture = ...; F

(ListenableFuture<I> input, Function<? super I, ? extends O> function)

Source from the content-addressed store, hash-verified

595
596
597 public static <I, O> ListenableFuture<O> transform(ListenableFuture<I> input, Function<? super I, ? extends O> function) {
598 return AbstractTransformFuture.create(input, function);
599 }
600
601 /**
602 * Returns a new {@code Future} whose result is derived from the result of the given {@code

Callers 2

loadFutureMethod · 0.95
loadFutureMethod · 0.95

Calls 1

createMethod · 0.95

Tested by

no test coverage detected