.class public final Lcom/google/common/util/concurrent/Futures$FutureCombiner; .super Ljava/lang/Object; .source "Futures.java" # annotations .annotation build Lcom/google/common/annotations/Beta; .end annotation .annotation build Lcom/google/common/annotations/GwtCompatible; .end annotation .annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue; .end annotation .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/util/concurrent/Futures; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "FutureCombiner" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;" } .end annotation # instance fields .field private final allMustSucceed:Z .field private final futures:Lcom/google/common/collect/ImmutableList; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/collect/ImmutableList<", "Lcom/google/common/util/concurrent/ListenableFuture<", "+TV;>;>;" } .end annotation .end field # direct methods .method private constructor (ZLcom/google/common/collect/ImmutableList;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(Z", "Lcom/google/common/collect/ImmutableList<", "Lcom/google/common/util/concurrent/ListenableFuture<", "+TV;>;>;)V" } .end annotation .line 2 invoke-direct {p0}, Ljava/lang/Object;->()V .line 3 iput-boolean p1, p0, Lcom/google/common/util/concurrent/Futures$FutureCombiner;->allMustSucceed:Z .line 4 iput-object p2, p0, Lcom/google/common/util/concurrent/Futures$FutureCombiner;->futures:Lcom/google/common/collect/ImmutableList; return-void .end method .method public synthetic constructor (ZLcom/google/common/collect/ImmutableList;Lcom/google/common/util/concurrent/Futures$1;)V .locals 0 .line 1 invoke-direct {p0, p1, p2}, Lcom/google/common/util/concurrent/Futures$FutureCombiner;->(ZLcom/google/common/collect/ImmutableList;)V return-void .end method # virtual methods .method public call(Ljava/util/concurrent/Callable;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; .locals 3 .annotation build Lcom/google/errorprone/annotations/CanIgnoreReturnValue; .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/concurrent/Callable<", "TC;>;", "Ljava/util/concurrent/Executor;", ")", "Lcom/google/common/util/concurrent/ListenableFuture<", "TC;>;" } .end annotation .line 1 new-instance v0, Lcom/google/common/util/concurrent/CombinedFuture; iget-object v1, p0, Lcom/google/common/util/concurrent/Futures$FutureCombiner;->futures:Lcom/google/common/collect/ImmutableList; iget-boolean v2, p0, Lcom/google/common/util/concurrent/Futures$FutureCombiner;->allMustSucceed:Z invoke-direct {v0, v1, v2, p2, p1}, Lcom/google/common/util/concurrent/CombinedFuture;->(Lcom/google/common/collect/ImmutableCollection;ZLjava/util/concurrent/Executor;Ljava/util/concurrent/Callable;)V return-object v0 .end method .method public callAsync(Lcom/google/common/util/concurrent/AsyncCallable;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/util/concurrent/AsyncCallable<", "TC;>;", "Ljava/util/concurrent/Executor;", ")", "Lcom/google/common/util/concurrent/ListenableFuture<", "TC;>;" } .end annotation .line 1 new-instance v0, Lcom/google/common/util/concurrent/CombinedFuture; iget-object v1, p0, Lcom/google/common/util/concurrent/Futures$FutureCombiner;->futures:Lcom/google/common/collect/ImmutableList; iget-boolean v2, p0, Lcom/google/common/util/concurrent/Futures$FutureCombiner;->allMustSucceed:Z invoke-direct {v0, v1, v2, p2, p1}, Lcom/google/common/util/concurrent/CombinedFuture;->(Lcom/google/common/collect/ImmutableCollection;ZLjava/util/concurrent/Executor;Lcom/google/common/util/concurrent/AsyncCallable;)V return-object v0 .end method .method public run(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Runnable;", "Ljava/util/concurrent/Executor;", ")", "Lcom/google/common/util/concurrent/ListenableFuture<", "*>;" } .end annotation .line 1 new-instance v0, Lcom/google/common/util/concurrent/Futures$FutureCombiner$1; invoke-direct {v0, p0, p1}, Lcom/google/common/util/concurrent/Futures$FutureCombiner$1;->(Lcom/google/common/util/concurrent/Futures$FutureCombiner;Ljava/lang/Runnable;)V invoke-virtual {p0, v0, p2}, Lcom/google/common/util/concurrent/Futures$FutureCombiner;->call(Ljava/util/concurrent/Callable;Ljava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/ListenableFuture; move-result-object p1 return-object p1 .end method