granularity level: instruction
.class public final Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder;
.super Ljava/lang/Object;
.source "MapBuilder.java"
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
.field private final contributions:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"TK;TV;>;"
}
.end annotation
.end field
.method private constructor <init>(I)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-static {p1}, Lcom/google/android/datatransport/runtime/dagger/internal/DaggerCollections;->newLinkedHashMapWithExpectedSize(I)Ljava/util/LinkedHashMap;
move-result-object p1
iput-object p1, p0, Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder;->contributions:Ljava/util/Map;
return-void
.end method
.method public static newMapBuilder(I)Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">(I)",
"Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder<",
"TK;TV;>;"
}
.end annotation
new-instance v0, Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder;
invoke-direct {v0, p0}, Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder;-><init>(I)V
return-object v0
.end method
.method public build()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"TK;TV;>;"
}
.end annotation
iget-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder;->contributions:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->size()I
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder;->contributions:Ljava/util/Map;
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v0
return-object v0
:cond_0
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
move-result-object v0
return-object v0
.end method
.method public put(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;)",
"Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder<",
"TK;TV;>;"
}
.end annotation
iget-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder;->contributions:Ljava/util/Map;
invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-object p0
.end method
.method public putAll(Ljava/util/Map;)Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"TK;TV;>;)",
"Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder<",
"TK;TV;>;"
}
.end annotation
iget-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/MapBuilder;->contributions:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->putAll(Ljava/util/Map;)V
return-object p0
.end method