@InternalApi(value="For internal usage only") public final class ApiFutureUtil extends Object
Constructor and Description |
---|
ApiFutureUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> com.google.common.util.concurrent.ListenableFuture<T> |
adapt(com.google.api.core.ApiFuture<T> apiFuture) |
static <T> com.google.api.core.ApiFuture<T> |
adapt(com.google.common.util.concurrent.ListenableFuture<T> listenableFuture) |
static <F,T> com.google.api.core.ApiFuture<T> |
transformAndAdapt(com.google.common.util.concurrent.ListenableFuture<F> listenableFuture,
com.google.common.base.Function<F,T> transform) |
public static <T> com.google.common.util.concurrent.ListenableFuture<T> adapt(com.google.api.core.ApiFuture<T> apiFuture)
public static <T> com.google.api.core.ApiFuture<T> adapt(com.google.common.util.concurrent.ListenableFuture<T> listenableFuture)
public static <F,T> com.google.api.core.ApiFuture<T> transformAndAdapt(com.google.common.util.concurrent.ListenableFuture<F> listenableFuture, com.google.common.base.Function<F,T> transform)