r.smali

.class public final Lcom/google/common/util/concurrent/r;
.super Ljava/lang/Object;
.source "Futures.java"


# direct methods
.method static constructor <clinit>()V
    .registers 2

    .prologue
    .line 979
    new-instance v0, Lcom/google/common/util/concurrent/r$2;

    invoke-direct {v0}, Lcom/google/common/util/concurrent/r$2;-><init>()V

    .line 1570
    invoke-static {}, Lcom/google/common/collect/Ordering;->natural()Lcom/google/common/collect/Ordering;

    move-result-object v0

    new-instance v1, Lcom/google/common/util/concurrent/r$4;

    invoke-direct {v1}, Lcom/google/common/util/concurrent/r$4;-><init>()V

    invoke-virtual {v0, v1}, Lcom/google/common/collect/Ordering;->onResultOf(Lcom/google/common/base/g;)Lcom/google/common/collect/Ordering;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/common/collect/Ordering;->reverse()Lcom/google/common/collect/Ordering;

    return-void
.end method

.method private static a(Lcom/google/common/collect/ImmutableList;ZLjava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/y;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<V:",
            "Ljava/lang/Object;",
            ">(",
            "Lcom/google/common/collect/ImmutableList",
            "<",
            "Lcom/google/common/util/concurrent/y",
            "<+TV;>;>;Z",
            "Ljava/util/concurrent/Executor;",
            ")",
            "Lcom/google/common/util/concurrent/y",
            "<",
            "Ljava/util/List",
            "<TV;>;>;"
        }
    .end annotation

    .prologue
    .line 1777
    new-instance v0, Lcom/google/common/util/concurrent/t;

    new-instance v1, Lcom/google/common/util/concurrent/r$5;

    invoke-direct {v1}, Lcom/google/common/util/concurrent/r$5;-><init>()V

    invoke-direct {v0, p0, p1, p2, v1}, Lcom/google/common/util/concurrent/t;-><init>(Lcom/google/common/collect/ImmutableCollection;ZLjava/util/concurrent/Executor;Lcom/google/common/util/concurrent/u;)V

    return-object v0
.end method

.method public static a(Lcom/google/common/util/concurrent/y;Lcom/google/common/base/g;)Lcom/google/common/util/concurrent/y;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<I:",
            "Ljava/lang/Object;",
            "O:",
            "Ljava/lang/Object;",
            ">(",
            "Lcom/google/common/util/concurrent/y",
            "<TI;>;",
            "Lcom/google/common/base/g",
            "<-TI;+TO;>;)",
            "Lcom/google/common/util/concurrent/y",
            "<TO;>;"
        }
    .end annotation

    .prologue
    .line 705
    invoke-static {p1}, Lcom/google/common/base/n;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 706
    new-instance v0, Lcom/google/common/util/concurrent/s;

    .line 2758
    new-instance v1, Lcom/google/common/util/concurrent/r$1;

    invoke-direct {v1, p1}, Lcom/google/common/util/concurrent/r$1;-><init>(Lcom/google/common/base/g;)V

    .line 706
    const/4 v2, 0x0

    invoke-direct {v0, v1, p0, v2}, Lcom/google/common/util/concurrent/s;-><init>(Lcom/google/common/util/concurrent/f;Lcom/google/common/util/concurrent/y;B)V

    .line 3450
    sget-object v1, Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutor;->INSTANCE:Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutor;

    .line 708
    invoke-interface {p0, v0, v1}, Lcom/google/common/util/concurrent/y;->a(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V

    .line 709
    return-object v0
.end method

.method public static varargs a([Lcom/google/common/util/concurrent/y;)Lcom/google/common/util/concurrent/y;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<V:",
            "Ljava/lang/Object;",
            ">([",
            "Lcom/google/common/util/concurrent/y",
            "<+TV;>;)",
            "Lcom/google/common/util/concurrent/y",
            "<",
            "Ljava/util/List",
            "<TV;>;>;"
        }
    .end annotation

    .prologue
    .line 1005
    invoke-static {p0}, Lcom/google/common/collect/ImmutableList;->copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;

    move-result-object v0

    const/4 v1, 0x1

    .line 4450
    sget-object v2, Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutor;->INSTANCE:Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutor;

    .line 1005
    invoke-static {v0, v1, v2}, Lcom/google/common/util/concurrent/r;->a(Lcom/google/common/collect/ImmutableList;ZLjava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/y;

    move-result-object v0

    return-object v0
.end method

.method public static a(Ljava/util/concurrent/Future;)Ljava/lang/Object;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<V:",
            "Ljava/lang/Object;",
            ">(",
            "Ljava/util/concurrent/Future",
            "<TV;>;)TV;"
        }
    .end annotation

    .prologue
    .line 1507
    invoke-static {p0}, Lcom/google/common/base/n;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 1509
    :try_start_3
    invoke-static {p0}, Lcom/google/common/util/concurrent/aq;->b(Ljava/util/concurrent/Future;)Ljava/lang/Object;
    :try_end_6
    .catch Ljava/util/concurrent/ExecutionException; {:try_start_3 .. :try_end_6} :catch_8

    move-result-object v0

    return-object v0

    .line 1511
    :catch_8
    move-exception v0

    invoke-virtual {v0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;

    move-result-object v0

    .line 8517
    instance-of v1, v0, Ljava/lang/Error;

    if-eqz v1, :cond_19

    .line 8518
    new-instance v1, Lcom/google/common/util/concurrent/ExecutionError;

    check-cast v0, Ljava/lang/Error;

    invoke-direct {v1, v0}, Lcom/google/common/util/concurrent/ExecutionError;-><init>(Ljava/lang/Error;)V

    throw v1

    .line 8525
    :cond_19
    new-instance v1, Lcom/google/common/util/concurrent/UncheckedExecutionException;

    invoke-direct {v1, v0}, Lcom/google/common/util/concurrent/UncheckedExecutionException;-><init>(Ljava/lang/Throwable;)V

    throw v1
.end method

.method public static a(Lcom/google/common/util/concurrent/y;Lcom/google/common/util/concurrent/q;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<V:",
            "Ljava/lang/Object;",
            ">(",
            "Lcom/google/common/util/concurrent/y",
            "<TV;>;",
            "Lcom/google/common/util/concurrent/q",
            "<-TV;>;)V"
        }
    .end annotation

    .prologue
    .line 1258
    .line 7450
    sget-object v0, Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutor;->INSTANCE:Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutor;

    .line 8300
    invoke-static {p1}, Lcom/google/common/base/n;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 8301
    new-instance v1, Lcom/google/common/util/concurrent/r$3;

    invoke-direct {v1, p0, p1}, Lcom/google/common/util/concurrent/r$3;-><init>(Lcom/google/common/util/concurrent/y;Lcom/google/common/util/concurrent/q;)V

    .line 8322
    invoke-interface {p0, v1, v0}, Lcom/google/common/util/concurrent/y;->a(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V

    .line 1259
    return-void
.end method

.method public static ag(Ljava/lang/Object;)Lcom/google/common/util/concurrent/y;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<V:",
            "Ljava/lang/Object;",
            ">(TV;)",
            "Lcom/google/common/util/concurrent/y",
            "<TV;>;"
        }
    .end annotation

    .prologue
    .line 247
    new-instance v0, Lcom/google/common/util/concurrent/x;

    invoke-direct {v0, p0}, Lcom/google/common/util/concurrent/x;-><init>(Ljava/lang/Object;)V

    return-object v0
.end method

.method public static e(Ljava/lang/Throwable;)Lcom/google/common/util/concurrent/y;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<V:",
            "Ljava/lang/Object;",
            ">(",
            "Ljava/lang/Throwable;",
            ")",
            "Lcom/google/common/util/concurrent/y",
            "<TV;>;"
        }
    .end annotation

    .prologue
    .line 274
    invoke-static {p0}, Lcom/google/common/base/n;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 275
    new-instance v0, Lcom/google/common/util/concurrent/v;

    invoke-direct {v0, p0}, Lcom/google/common/util/concurrent/v;-><init>(Ljava/lang/Throwable;)V

    return-object v0
.end method

.method public static k(Ljava/lang/Iterable;)Lcom/google/common/util/concurrent/y;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<V:",
            "Ljava/lang/Object;",
            ">(",
            "Ljava/lang/Iterable",
            "<+",
            "Lcom/google/common/util/concurrent/y",
            "<+TV;>;>;)",
            "Lcom/google/common/util/concurrent/y",
            "<",
            "Ljava/util/List",
            "<TV;>;>;"
        }
    .end annotation

    .prologue
    .line 1027
    invoke-static {p0}, Lcom/google/common/collect/ImmutableList;->copyOf(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList;

    move-result-object v0

    const/4 v1, 0x1

    .line 5450
    sget-object v2, Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutor;->INSTANCE:Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutor;

    .line 1027
    invoke-static {v0, v1, v2}, Lcom/google/common/util/concurrent/r;->a(Lcom/google/common/collect/ImmutableList;ZLjava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/y;

    move-result-object v0

    return-object v0
.end method

.method public static l(Ljava/lang/Iterable;)Lcom/google/common/util/concurrent/y;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<V:",
            "Ljava/lang/Object;",
            ">(",
            "Ljava/lang/Iterable",
            "<+",
            "Lcom/google/common/util/concurrent/y",
            "<+TV;>;>;)",
            "Lcom/google/common/util/concurrent/y",
            "<",
            "Ljava/util/List",
            "<TV;>;>;"
        }
    .end annotation

    .prologue
    .line 1158
    invoke-static {p0}, Lcom/google/common/collect/ImmutableList;->copyOf(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList;

    move-result-object v0

    const/4 v1, 0x0

    .line 6450
    sget-object v2, Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutor;->INSTANCE:Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutor;

    .line 1158
    invoke-static {v0, v1, v2}, Lcom/google/common/util/concurrent/r;->a(Lcom/google/common/collect/ImmutableList;ZLjava/util/concurrent/Executor;)Lcom/google/common/util/concurrent/y;

    move-result-object v0

    return-object v0
.end method