Generated by
JDiff

Class com.google.common.util.concurrent.Futures

Added Methods
void addCallback(ListenableFuture<V>, FutureCallback<?, super, V>) Registers separate success and failure callbacks to be run when the {@code Future}'s computation is java.util.concurrent.Future#isDone() complete or, if the computation is already complete, immediately.
void addCallback(ListenableFuture<V>, FutureCallback<?, super, V>, Executor) Registers separate success and failure callbacks to be run when the {@code Future}'s computation is java.util.concurrent.Future#isDone() complete or, if the computation is already complete, immediately.
ListenableFuture<List<V>> allAsList(ListenableFuture[]) Creates a new {@code ListenableFuture} whose value is a list containing the values of all its input futures, if all succeed.
ListenableFuture<List<V>> allAsList(Iterable<? extends ListenableFuture<? extends V>>) Creates a new {@code ListenableFuture} whose value is a list containing the values of all its input futures, if all succeed.
V get(Future<V>, Class<X>) Returns the result of Future.get(), converting most exceptions to a new instance of the given checked exception type.
V get(Future<V>, long, TimeUnit, Class<X>) Returns the result of Future.get(long, TimeUnit), converting most exceptions to a new instance of the given checked exception type.
V getUnchecked(Future<V>) Returns the result of calling Future.get() uninterruptibly on a task known not to throw a checked exception.
Future<O> lazyTransform(Future<I>, Function<?, super, I, ?, extends, O>) Like .transform(ListenableFuture, Function) except that the transformation {@code function} is invoked on each call to get() on the returned future.
ListenableFuture<List<V>> successfulAsList(ListenableFuture[]) Creates a new {@code ListenableFuture} whose value is a list containing the values of all its successful input futures.
ListenableFuture<List<V>> successfulAsList(Iterable<? extends ListenableFuture<? extends V>>) Creates a new {@code ListenableFuture} whose value is a list containing the values of all its successful input futures.
 

Changed Methods
ListenableFuture<V> makeListenable(Future<V>) Now deprecated.
Prefer to create {@code ListenableFuture} instances with {@link SettableFuture}, {@link MoreExecutors#listeningDecorator( java.util.concurrent.ExecutorService)}, {@link ListenableFutureTask}, {@link AbstractFuture}, and other utilities over creating plain {@code Future} instances to be upgraded to {@code ListenableFuture} after the fact.
UninterruptibleFuture<V> makeUninterruptible(Future<V>) Now deprecated.
Use {@link Uninterruptibles#getUninterruptibly(Future) getUninterruptibly}.
CheckedFuture<V, X> makeChecked(Future<V>, Function<Exception, X>) Now deprecated.
Obtain a {@link ListenableFuture}, following the advice in its documentation and use {@link #makeChecked(ListenableFuture, Function)}.
Future<O> transform(Future<I>, Function<?, super, I, ?, extends, O>) Now deprecated.
Obtain a {@code ListenableFuture} (following the advice in its documentation) and use {@link #transform(ListenableFuture, Function)} or use {@link #lazyTransform(Future, Function)}, which will apply the transformation on each call to {@code get()}.