You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
135 lines
2.8 KiB
135 lines
2.8 KiB
.class final Lbolts/Task$7; |
|
.super Ljava/lang/Object; |
|
.source "Task.java" |
|
|
|
# interfaces |
|
.implements Lbolts/Continuation; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lbolts/Task;->whenAllResult(Ljava/util/Collection;)Lbolts/Task; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x8 |
|
name = null |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/lang/Object;", |
|
"Lbolts/Continuation", |
|
"<", |
|
"Ljava/lang/Void;", |
|
"Ljava/util/List", |
|
"<TTResult;>;>;" |
|
} |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic val$tasks:Ljava/util/Collection; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Ljava/util/Collection;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 488 |
|
iput-object p1, p0, Lbolts/Task$7;->val$tasks:Ljava/util/Collection; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public bridge synthetic then(Lbolts/Task;)Ljava/lang/Object; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 488 |
|
invoke-virtual {p0, p1}, Lbolts/Task$7;->then(Lbolts/Task;)Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public then(Lbolts/Task;)Ljava/util/List; |
|
.locals 3 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Lbolts/Task", |
|
"<", |
|
"Ljava/lang/Void;", |
|
">;)", |
|
"Ljava/util/List", |
|
"<TTResult;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 491 |
|
iget-object v0, p0, Lbolts/Task$7;->val$tasks:Ljava/util/Collection; |
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->size()I |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 492 |
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
.line 499 |
|
:goto_0 |
|
return-object v0 |
|
|
|
.line 495 |
|
:cond_0 |
|
new-instance v1, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V |
|
|
|
.line 496 |
|
iget-object v0, p0, Lbolts/Task$7;->val$tasks:Ljava/util/Collection; |
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v2 |
|
|
|
:goto_1 |
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lbolts/Task; |
|
|
|
.line 497 |
|
invoke-virtual {v0}, Lbolts/Task;->getResult()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z |
|
|
|
goto :goto_1 |
|
|
|
:cond_1 |
|
move-object v0, v1 |
|
|
|
.line 499 |
|
goto :goto_0 |
|
.end method
|
|
|