b.smali

.class public final Lcom/google/firebase/components/b;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation

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


# instance fields
.field private final bbD:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set",
            "<",
            "Ljava/lang/Class",
            "<-TT;>;>;"
        }
    .end annotation
.end field

.field private final bbE:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set",
            "<",
            "Lcom/google/firebase/components/f;",
            ">;"
        }
    .end annotation
.end field

.field private bbF:Lcom/google/firebase/components/d;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/firebase/components/d",
            "<TT;>;"
        }
    .end annotation
.end field

.field private bbG:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set",
            "<",
            "Ljava/lang/Class",
            "<*>;>;"
        }
    .end annotation
.end field

.field private zzc:I


# direct methods
.method private varargs constructor <init>(Ljava/lang/Class;[Ljava/lang/Class;)V
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class",
            "<TT;>;[",
            "Ljava/lang/Class",
            "<-TT;>;)V"
        }
    .end annotation

    .prologue
    const/4 v0, 0x0

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

    .line 150
    new-instance v1, Ljava/util/HashSet;

    invoke-direct {v1}, Ljava/util/HashSet;-><init>()V

    iput-object v1, p0, Lcom/google/firebase/components/b;->bbD:Ljava/util/Set;

    .line 151
    new-instance v1, Ljava/util/HashSet;

    invoke-direct {v1}, Ljava/util/HashSet;-><init>()V

    iput-object v1, p0, Lcom/google/firebase/components/b;->bbE:Ljava/util/Set;

    .line 152
    iput v0, p0, Lcom/google/firebase/components/b;->zzc:I

    .line 154
    new-instance v1, Ljava/util/HashSet;

    invoke-direct {v1}, Ljava/util/HashSet;-><init>()V

    iput-object v1, p0, Lcom/google/firebase/components/b;->bbG:Ljava/util/Set;

    .line 157
    const-string v1, "Null interface"

    invoke-static {p1, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 158
    iget-object v1, p0, Lcom/google/firebase/components/b;->bbD:Ljava/util/Set;

    invoke-interface {v1, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 159
    array-length v1, p2

    :goto_26
    if-ge v0, v1, :cond_32

    aget-object v2, p2, v0

    .line 160
    const-string v3, "Null interface"

    invoke-static {v2, v3}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 159
    add-int/lit8 v0, v0, 0x1

    goto :goto_26

    .line 162
    :cond_32
    iget-object v0, p0, Lcom/google/firebase/components/b;->bbD:Ljava/util/Set;

    invoke-static {v0, p2}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z

    .line 163
    return-void
.end method

.method synthetic constructor <init>(Ljava/lang/Class;[Ljava/lang/Class;B)V
    .registers 4

    .prologue
    .line 149
    invoke-direct {p0, p1, p2}, Lcom/google/firebase/components/b;-><init>(Ljava/lang/Class;[Ljava/lang/Class;)V

    return-void
.end method


# virtual methods
.method public final a(Lcom/google/firebase/components/d;)Lcom/google/firebase/components/b;
    .registers 3
    .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/firebase/components/d",
            "<TT;>;)",
            "Lcom/google/firebase/components/b",
            "<TT;>;"
        }
    .end annotation

    .prologue
    .line 204
    const-string v0, "Null factory"

    invoke-static {p1, v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/google/firebase/components/d;

    iput-object v0, p0, Lcom/google/firebase/components/b;->bbF:Lcom/google/firebase/components/d;

    .line 205
    return-object p0
.end method

.method public final a(Lcom/google/firebase/components/f;)Lcom/google/firebase/components/b;
    .registers 4
    .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/firebase/components/f;",
            ")",
            "Lcom/google/firebase/components/b",
            "<TT;>;"
        }
    .end annotation

    .prologue
    .line 167
    const-string v0, "Null dependency"

    invoke-static {p1, v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 2058
    iget-object v0, p1, Lcom/google/firebase/components/f;->bbH:Ljava/lang/Class;

    .line 1197
    iget-object v1, p0, Lcom/google/firebase/components/b;->bbD:Ljava/util/Set;

    .line 1198
    invoke-interface {v1, v0}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1b

    const/4 v0, 0x1

    :goto_10
    const-string v1, "Components are not allowed to depend on interfaces they themselves provide."

    .line 1197
    invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V

    .line 169
    iget-object v0, p0, Lcom/google/firebase/components/b;->bbE:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 170
    return-object p0

    .line 1198
    :cond_1b
    const/4 v0, 0x0

    goto :goto_10
.end method

.method public final yU()Lcom/google/firebase/components/b;
    .registers 4
    .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/google/firebase/components/b",
            "<TT;>;"
        }
    .end annotation

    .prologue
    const/4 v1, 0x1

    .line 175
    .line 2190
    iget v0, p0, Lcom/google/firebase/components/b;->zzc:I

    if-nez v0, :cond_e

    move v0, v1

    :goto_6
    const-string v2, "Instantiation type has already been set."

    invoke-static {v0, v2}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V

    .line 2192
    iput v1, p0, Lcom/google/firebase/components/b;->zzc:I

    .line 175
    return-object p0

    .line 2190
    :cond_e
    const/4 v0, 0x0

    goto :goto_6
.end method

.method public final yV()Lcom/google/firebase/components/a;
    .registers 8
    .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/google/firebase/components/a",
            "<TT;>;"
        }
    .end annotation

    .prologue
    const/4 v6, 0x0

    .line 210
    iget-object v0, p0, Lcom/google/firebase/components/b;->bbF:Lcom/google/firebase/components/d;

    if-eqz v0, :cond_25

    const/4 v0, 0x1

    :goto_6
    const-string v1, "Missing required property: factory."

    invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V

    .line 211
    new-instance v0, Lcom/google/firebase/components/a;

    new-instance v1, Ljava/util/HashSet;

    iget-object v2, p0, Lcom/google/firebase/components/b;->bbD:Ljava/util/Set;

    invoke-direct {v1, v2}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V

    new-instance v2, Ljava/util/HashSet;

    iget-object v3, p0, Lcom/google/firebase/components/b;->bbE:Ljava/util/Set;

    invoke-direct {v2, v3}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V

    iget v3, p0, Lcom/google/firebase/components/b;->zzc:I

    iget-object v4, p0, Lcom/google/firebase/components/b;->bbF:Lcom/google/firebase/components/d;

    iget-object v5, p0, Lcom/google/firebase/components/b;->bbG:Ljava/util/Set;

    invoke-direct/range {v0 .. v6}, Lcom/google/firebase/components/a;-><init>(Ljava/util/Set;Ljava/util/Set;ILcom/google/firebase/components/d;Ljava/util/Set;B)V

    return-object v0

    :cond_25
    move v0, v6

    .line 210
    goto :goto_6
.end method