granularity level: instruction
.class public final Lcom/google/android/datatransport/runtime/dagger/internal/MapFactory;
.super Lcom/google/android/datatransport/runtime/dagger/internal/AbstractMapFactory;
.source "MapFactory.java"
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/datatransport/runtime/dagger/internal/MapFactory$Builder;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Lcom/google/android/datatransport/runtime/dagger/internal/AbstractMapFactory<",
"TK;TV;TV;>;"
}
.end annotation
.field private static final EMPTY:Ljavax/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljavax/inject/Provider<",
"Ljava/util/Map<",
"Ljava/lang/Object;",
"Ljava/lang/Object;",
">;>;"
}
.end annotation
.end field
.method static constructor <clinit>()V
.locals 1
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
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/MapFactory;->EMPTY:Ljavax/inject/Provider;
return-void
.end method
.method private constructor <init>(Ljava/util/Map;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"TK;",
"Ljavax/inject/Provider<",
"TV;>;>;)V"
}
.end annotation
invoke-direct {p0, p1}, Lcom/google/android/datatransport/runtime/dagger/internal/AbstractMapFactory;-><init>(Ljava/util/Map;)V
return-void
.end method
.method synthetic constructor <init>(Ljava/util/Map;Lcom/google/android/datatransport/runtime/dagger/internal/MapFactory$1;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/android/datatransport/runtime/dagger/internal/MapFactory;-><init>(Ljava/util/Map;)V
return-void
.end method
.method public static builder(I)Lcom/google/android/datatransport/runtime/dagger/internal/MapFactory$Builder;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">(I)",
"Lcom/google/android/datatransport/runtime/dagger/internal/MapFactory$Builder<",
"TK;TV;>;"
}
.end annotation
new-instance v0, Lcom/google/android/datatransport/runtime/dagger/internal/MapFactory$Builder;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/google/android/datatransport/runtime/dagger/internal/MapFactory$Builder;-><init>(ILcom/google/android/datatransport/runtime/dagger/internal/MapFactory$1;)V
return-object v0
.end method
.method public static emptyMapProvider()Ljavax/inject/Provider;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">()",
"Ljavax/inject/Provider<",
"Ljava/util/Map<",
"TK;TV;>;>;"
}
.end annotation
sget-object v0, Lcom/google/android/datatransport/runtime/dagger/internal/MapFactory;->EMPTY:Ljavax/inject/Provider;
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/MapFactory;->get()Ljava/util/Map;
move-result-object v0
return-object v0
.end method
.method public get()Ljava/util/Map;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"TK;TV;>;"
}
.end annotation
invoke-virtual {p0}, Lcom/google/android/datatransport/runtime/dagger/internal/MapFactory;->contributingMap()Ljava/util/Map;
move-result-object v0
invoke-interface {v0}, Ljava/util/Map;->size()I
move-result v0
invoke-static {v0}, Lcom/google/android/datatransport/runtime/dagger/internal/DaggerCollections;->newLinkedHashMapWithExpectedSize(I)Ljava/util/LinkedHashMap;
move-result-object v0
invoke-virtual {p0}, Lcom/google/android/datatransport/runtime/dagger/internal/MapFactory;->contributingMap()Ljava/util/Map;
move-result-object v1
invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map$Entry;
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v3
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljavax/inject/Provider;
invoke-interface {v2}, Ljavax/inject/Provider;->get()Ljava/lang/Object;
move-result-object v2
invoke-interface {v0, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_0
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v0
return-object v0
.end method