Futures.transform*.
| Modifier and Type | Class and Description |
|---|---|
| private static class | AbstractTransformFuture.AsyncTransformFuture<I extends @Nullable Object, O extends @Nullable Object>
An |
| private static class | AbstractTransformFuture.TransformFuture<I extends @Nullable Object, O extends @Nullable Object>
An |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv F | |
| pack-priv ListenableFuture |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | afterDone()
Overrides com. |
| pack-priv static <I extends @Nullable Object, O extends @Nullable Object> ListenableFuture | create(ListenableFuture<I> input, AsyncFunction<? super I, ? extends O> function, Executor executor)
|
| pack-priv static <I extends @Nullable Object, O extends @Nullable Object> ListenableFuture | |
| pack-priv abstract T | |
| protected String | pendingToString()
Overrides com. |
| public final void | |
| pack-priv abstract void |
| function | back to summary |
|---|---|
| pack-priv F function
| |
| inputFuture | back to summary |
|---|---|
| pack-priv ListenableFuture<? extends I> inputFuture
| |
| AbstractTransformFuture | back to summary |
|---|---|
| pack-priv AbstractTransformFuture(ListenableFuture<? extends I> inputFuture, F function) | |
| afterDone | back to summary |
|---|---|
| protected final void afterDone() Overrides com. Doc from com. Callback method that is called exactly once after the future is completed. If The default implementation of this method in
| |
| create | back to summary |
|---|---|
| pack-priv static <I extends @Nullable Object, O extends @Nullable Object> ListenableFuture | |
| create | back to summary |
|---|---|
| pack-priv static <I extends @Nullable Object, O extends @Nullable Object> ListenableFuture | |
| doTransform | back to summary |
|---|---|
| pack-priv abstract T doTransform(F function, I result) throws Exception Template method for subtypes to actually run the transform.
| |
| pendingToString | back to summary |
|---|---|
| protected String pendingToString() Overrides com. Doc from com. Provide a human-readable explanation of why this future has not yet completed.
| |
| run | back to summary |
|---|---|
| public final void run() Implements java. Doc from java. Runs this operation.
| |
| setResult | back to summary |
|---|---|
| pack-priv abstract void setResult(T result) Template method for subtypes to actually set the result.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | AsyncTransformFuture(ListenableFuture<? extends I> inputFuture, AsyncFunction<? super I, ? extends O> function)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ListenableFuture | doTransform(AsyncFunction<? super I, ? extends O> function, I input)
Implements abstract com. |
| pack-priv void | setResult(ListenableFuture<? extends O> result)
Implements abstract com. |
| AsyncTransformFuture | back to summary |
|---|---|
| pack-priv AsyncTransformFuture(ListenableFuture<? extends I> inputFuture, AsyncFunction<? super I, ? extends O> function) | |
| doTransform | back to summary |
|---|---|
| pack-priv ListenableFuture Implements abstract com. Doc from com. Template method for subtypes to actually run the transform.
| |
| setResult | back to summary |
|---|---|
| pack-priv void setResult(ListenableFuture<? extends O> result) Implements abstract com. Doc from com. Template method for subtypes to actually set the result.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | TransformFuture(ListenableFuture<? extends I> inputFuture, Function<? super I, ? extends O> function)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv O | doTransform(Function<? super I, ? extends O> function, I input)
Implements abstract com. |
| pack-priv void | setResult(O result)
Implements abstract com. |
| TransformFuture | back to summary |
|---|---|
| pack-priv TransformFuture(ListenableFuture<? extends I> inputFuture, Function<? super I, ? extends O> function) | |
| doTransform | back to summary |
|---|---|
| pack-priv O doTransform(Function<? super I, ? extends O> function, I input) Implements abstract com. Doc from com. Template method for subtypes to actually run the transform.
| |
| setResult | back to summary |
|---|---|
| pack-priv void setResult(O result) Implements abstract com. Doc from com. Template method for subtypes to actually set the result.
| |