b$f.smali

.class final Lcom/google/common/util/concurrent/b$f;
.super Ljava/lang/Object;
.source "AbstractFuture.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/google/common/util/concurrent/b;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1a
    name = "f"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<V:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Ljava/lang/Runnable;"
    }
.end annotation


# instance fields
.field final a:Lcom/google/common/util/concurrent/b;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/common/util/concurrent/b<",
            "TV;>;"
        }
    .end annotation
.end field

.field final b:Lcom/google/common/util/concurrent/h;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/common/util/concurrent/h<",
            "+TV;>;"
        }
    .end annotation
.end field


# direct methods
.method constructor <init>(Lcom/google/common/util/concurrent/b;Lcom/google/common/util/concurrent/h;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/common/util/concurrent/b<",
            "TV;>;",
            "Lcom/google/common/util/concurrent/h<",
            "+TV;>;)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/google/common/util/concurrent/b$f;->a:Lcom/google/common/util/concurrent/b;

    .line 3
    iput-object p2, p0, Lcom/google/common/util/concurrent/b$f;->b:Lcom/google/common/util/concurrent/h;

    return-void
.end method


# virtual methods
.method public run()V
    .registers 4

    .line 1
    iget-object v0, p0, Lcom/google/common/util/concurrent/b$f;->a:Lcom/google/common/util/concurrent/b;

    # getter for: Lcom/google/common/util/concurrent/b;->value:Ljava/lang/Object;
    invoke-static {v0}, Lcom/google/common/util/concurrent/b;->access$400(Lcom/google/common/util/concurrent/b;)Ljava/lang/Object;

    move-result-object v0

    if-eq v0, p0, :cond_9

    return-void

    .line 2
    :cond_9
    iget-object v0, p0, Lcom/google/common/util/concurrent/b$f;->b:Lcom/google/common/util/concurrent/h;

    # invokes: Lcom/google/common/util/concurrent/b;->getFutureValue(Lcom/google/common/util/concurrent/h;)Ljava/lang/Object;
    invoke-static {v0}, Lcom/google/common/util/concurrent/b;->access$500(Lcom/google/common/util/concurrent/h;)Ljava/lang/Object;

    move-result-object v0

    .line 3
    # getter for: Lcom/google/common/util/concurrent/b;->ATOMIC_HELPER:Lcom/google/common/util/concurrent/b$a;
    invoke-static {}, Lcom/google/common/util/concurrent/b;->access$200()Lcom/google/common/util/concurrent/b$a;

    move-result-object v1

    iget-object v2, p0, Lcom/google/common/util/concurrent/b$f;->a:Lcom/google/common/util/concurrent/b;

    invoke-virtual {v1, v2, p0, v0}, Lcom/google/common/util/concurrent/b$a;->a(Lcom/google/common/util/concurrent/b;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_20

    .line 4
    iget-object v0, p0, Lcom/google/common/util/concurrent/b$f;->a:Lcom/google/common/util/concurrent/b;

    # invokes: Lcom/google/common/util/concurrent/b;->complete(Lcom/google/common/util/concurrent/b;)V
    invoke-static {v0}, Lcom/google/common/util/concurrent/b;->access$600(Lcom/google/common/util/concurrent/b;)V

    :cond_20
    return-void
.end method