apkfuckery/com.discord/smali_classes2/d0/j.smali
2020-11-12 02:11:44 +00:00

214 lines
5 KiB
Smali

.class public final Ld0/j;
.super Ljava/lang/Object;
.source "Challenge.kt"
# instance fields
.field public final a:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public final b:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/util/Map;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)V"
}
.end annotation
const-string v0, "scheme"
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "authParams"
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Ld0/j;->b:Ljava/lang/String;
new-instance p1, Ljava/util/LinkedHashMap;
invoke-direct {p1}, Ljava/util/LinkedHashMap;-><init>()V
invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p2
invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p2
:goto_0
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map$Entry;
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
if-eqz v1, :cond_0
sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale;
const-string v3, "US"
invoke-static {v2, v3}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1, v2}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object v1
const-string v2, "(this as java.lang.String).toLowerCase(locale)"
invoke-static {v1, v2}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
goto :goto_1
:cond_0
const/4 v1, 0x0
:goto_1
invoke-virtual {p1, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:cond_1
invoke-static {p1}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p1
const-string p2, "unmodifiableMap<String?, String>(newAuthParams)"
invoke-static {p1, p2}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p1, p0, Ld0/j;->a:Ljava/util/Map;
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 2
instance-of v0, p1, Ld0/j;
if-eqz v0, :cond_0
check-cast p1, Ld0/j;
iget-object v0, p1, Ld0/j;->b:Ljava/lang/String;
iget-object v1, p0, Ld0/j;->b:Ljava/lang/String;
invoke-static {v0, v1}, Lz/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object p1, p1, Ld0/j;->a:Ljava/util/Map;
iget-object v0, p0, Ld0/j;->a:Ljava/util/Map;
invoke-static {p1, v0}, Lz/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public hashCode()I
.locals 3
iget-object v0, p0, Ld0/j;->b:Ljava/lang/String;
const/16 v1, 0x383
const/16 v2, 0x1f
invoke-static {v0, v1, v2}, Lf/e/c/a/a;->T(Ljava/lang/String;II)I
move-result v0
iget-object v1, p0, Ld0/j;->a:Ljava/util/Map;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v1, v0
return v1
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Ld0/j;->b:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " authParams="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Ld0/j;->a:Ljava/util/Map;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method