apkfuckery/com.discord/smali/androidx/collection/ArrayMapKt.smali
2020-11-16 22:05:17 +00:00

79 lines
1.9 KiB
Smali

.class public final Landroidx/collection/ArrayMapKt;
.super Ljava/lang/Object;
.source "ArrayMap.kt"
# direct methods
.method public static final arrayMapOf()Landroidx/collection/ArrayMap;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">()",
"Landroidx/collection/ArrayMap<",
"TK;TV;>;"
}
.end annotation
new-instance v0, Landroidx/collection/ArrayMap;
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
return-object v0
.end method
.method public static final varargs arrayMapOf([Lkotlin/Pair;)Landroidx/collection/ArrayMap;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">([",
"Lkotlin/Pair<",
"+TK;+TV;>;)",
"Landroidx/collection/ArrayMap<",
"TK;TV;>;"
}
.end annotation
const-string v0, "pairs"
invoke-static {p0, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Landroidx/collection/ArrayMap;
array-length v1, p0
invoke-direct {v0, v1}, Landroidx/collection/ArrayMap;-><init>(I)V
array-length v1, p0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, p0, v2
invoke-virtual {v3}, Lkotlin/Pair;->getFirst()Ljava/lang/Object;
move-result-object v4
invoke-virtual {v3}, Lkotlin/Pair;->getSecond()Ljava/lang/Object;
move-result-object v3
invoke-interface {v0, v4, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object v0
.end method