com.google.cloud.bigtable.util
Class ApiFutureUtil
- java.lang.Object
-
- com.google.cloud.bigtable.util.ApiFutureUtil
-
public final class ApiFutureUtil extends Object
-
-
Constructor Summary
Constructors Constructor and Description ApiFutureUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static <T> ListenableFuture<T>
adapt(com.google.api.core.ApiFuture<T> apiFuture)
static <T> com.google.api.core.ApiFuture<T>
adapt(ListenableFuture<T> listenableFuture)
static <F,T> com.google.api.core.ApiFuture<T>
transformAndAdapt(ListenableFuture<F> listenableFuture, Function<F,T> transform)
-
-
-
Method Detail
-
adapt
public static <T> ListenableFuture<T> adapt(com.google.api.core.ApiFuture<T> apiFuture)
-
adapt
public static <T> com.google.api.core.ApiFuture<T> adapt(ListenableFuture<T> listenableFuture)
-
transformAndAdapt
public static <F,T> com.google.api.core.ApiFuture<T> transformAndAdapt(ListenableFuture<F> listenableFuture, Function<F,T> transform)
-
-