apkfuckery/com.discord/smali/androidx/collection/ArrayMapKt.smali

83 lines
1.8 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.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
if-eqz p0, :cond_1
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
iget-object v4, v3, Lkotlin/Pair;->first:Ljava/lang/Object;
iget-object v3, v3, Lkotlin/Pair;->second:Ljava/lang/Object;
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
:cond_1
const-string p0, "pairs"
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
const/4 p0, 0x0
throw p0
.end method