granularity level: instruction

		.class public final Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;
.super Ljava/lang/Object;
.source "SetFactory.java"
.implements Lcom/google/android/datatransport/runtime/dagger/internal/Factory;

.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory$Builder;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/android/datatransport/runtime/dagger/internal/Factory<",
"Ljava/util/Set<",
"TT;>;>;"
}
.end annotation

.field private static final EMPTY_FACTORY:Lcom/google/android/datatransport/runtime/dagger/internal/Factory;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/android/datatransport/runtime/dagger/internal/Factory<",
"Ljava/util/Set<",
"Ljava/lang/Object;",
">;>;"
}
.end annotation
.end field
.field private final collectionProviders:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljavax/inject/Provider<",
"Ljava/util/Collection<",
"TT;>;>;>;"
}
.end annotation
.end field
.field private final individualProviders:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljavax/inject/Provider<",
"TT;>;>;"
}
.end annotation
.end field


.method static constructor <clinit>()V
	.locals 1

	invoke-static {}, Ljava/util/Collections;->emptySet()Ljava/util/Set;
	move-result-object v0
	invoke-static {v0}, Lcom/google/android/datatransport/runtime/dagger/internal/InstanceFactory;->create(Ljava/lang/Object;)Lcom/google/android/datatransport/runtime/dagger/internal/Factory;
	move-result-object v0
	sput-object v0, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;->EMPTY_FACTORY:Lcom/google/android/datatransport/runtime/dagger/internal/Factory;
	return-void
.end method

.method private constructor <init>(Ljava/util/List;Ljava/util/List;)V
	.locals 0
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Ljava/util/List<",
	"Ljavax/inject/Provider<",
	"TT;>;>;",
	"Ljava/util/List<",
	"Ljavax/inject/Provider<",
	"Ljava/util/Collection<",
	"TT;>;>;>;)V"
	}
	.end annotation

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	iput-object p1, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;->individualProviders:Ljava/util/List;
	iput-object p2, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;->collectionProviders:Ljava/util/List;
	return-void
.end method

.method synthetic constructor <init>(Ljava/util/List;Ljava/util/List;Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory$1;)V
	.locals 0

	invoke-direct {p0, p1, p2}, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;-><init>(Ljava/util/List;Ljava/util/List;)V
	return-void
.end method

.method public static builder(II)Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory$Builder;
	.locals 2
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">(II)",
	"Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory$Builder<",
	"TT;>;"
	}
	.end annotation

	new-instance v0, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory$Builder;
	const/4 v1, 0x0
	invoke-direct {v0, p0, p1, v1}, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory$Builder;-><init>(IILcom/google/android/datatransport/runtime/dagger/internal/SetFactory$1;)V
	return-object v0
.end method

.method public static empty()Lcom/google/android/datatransport/runtime/dagger/internal/Factory;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<T:",
	"Ljava/lang/Object;",
	">()",
	"Lcom/google/android/datatransport/runtime/dagger/internal/Factory<",
	"Ljava/util/Set<",
	"TT;>;>;"
	}
	.end annotation

	sget-object v0, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;->EMPTY_FACTORY:Lcom/google/android/datatransport/runtime/dagger/internal/Factory;
	return-object v0
.end method

.method public bridge synthetic get()Ljava/lang/Object;
	.locals 1

	invoke-virtual {p0}, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;->get()Ljava/util/Set;
	move-result-object v0
	return-object v0
.end method

.method public get()Ljava/util/Set;
	.locals 7
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"()",
	"Ljava/util/Set<",
	"TT;>;"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;->individualProviders:Ljava/util/List;
	invoke-interface {v0}, Ljava/util/List;->size()I
	move-result v0
	new-instance v1, Ljava/util/ArrayList;
	iget-object v2, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;->collectionProviders:Ljava/util/List;
	invoke-interface {v2}, Ljava/util/List;->size()I
	move-result v2
	invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
	iget-object v2, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;->collectionProviders:Ljava/util/List;
	invoke-interface {v2}, Ljava/util/List;->size()I
	move-result v2
	const/4 v3, 0x0
	const/4 v4, 0x0
	:goto_0
	if-ge v4, v2, :cond_0
	iget-object v5, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;->collectionProviders:Ljava/util/List;
	invoke-interface {v5, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
	move-result-object v5
	check-cast v5, Ljavax/inject/Provider;
	invoke-interface {v5}, Ljavax/inject/Provider;->get()Ljava/lang/Object;
	move-result-object v5
	check-cast v5, Ljava/util/Collection;
	invoke-interface {v5}, Ljava/util/Collection;->size()I
	move-result v6
	add-int/2addr v0, v6
	invoke-interface {v1, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
	add-int/lit8 v4, v4, 0x1
	goto :goto_0
	:cond_0
	invoke-static {v0}, Lcom/google/android/datatransport/runtime/dagger/internal/DaggerCollections;->newHashSetWithExpectedSize(I)Ljava/util/HashSet;
	move-result-object v0
	iget-object v2, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;->individualProviders:Ljava/util/List;
	invoke-interface {v2}, Ljava/util/List;->size()I
	move-result v2
	const/4 v4, 0x0
	:goto_1
	if-ge v4, v2, :cond_1
	iget-object v5, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SetFactory;->individualProviders:Ljava/util/List;
	invoke-interface {v5, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
	move-result-object v5
	check-cast v5, Ljavax/inject/Provider;
	invoke-interface {v5}, Ljavax/inject/Provider;->get()Ljava/lang/Object;
	move-result-object v5
	invoke-static {v5}, Lcom/google/android/datatransport/runtime/dagger/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v5
	invoke-interface {v0, v5}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
	add-int/lit8 v4, v4, 0x1
	goto :goto_1
	:cond_1
	invoke-interface {v1}, Ljava/util/List;->size()I
	move-result v2
	:goto_2
	if-ge v3, v2, :cond_3
	invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
	move-result-object v4
	check-cast v4, Ljava/util/Collection;
	invoke-interface {v4}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
	move-result-object v4
	:goto_3
	invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
	move-result v5
	if-eqz v5, :cond_2
	invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v5
	invoke-static {v5}, Lcom/google/android/datatransport/runtime/dagger/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v5
	invoke-interface {v0, v5}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
	goto :goto_3
	:cond_2
	add-int/lit8 v3, v3, 0x1
	goto :goto_2
	:cond_3
	invoke-static {v0}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set;
	move-result-object v0
	return-object v0
.end method