discord-jadx/app/src/main/java/f0/i.java

59 lines
1.9 KiB
Java
Raw Normal View History

2021-06-27 20:44:35 +00:00
package f0;
2021-12-21 23:37:30 +00:00
import b.d.b.a.a;
2021-11-08 18:25:28 +00:00
import d0.z.d.m;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;
/* compiled from: Challenge.kt */
2022-03-02 20:59:20 +00:00
/* loaded from: classes3.dex */
2021-11-08 18:25:28 +00:00
public final class i {
public final Map<String, String> a;
2021-12-21 23:37:30 +00:00
/* renamed from: b reason: collision with root package name */
2022-03-30 16:43:10 +00:00
public final String f3653b;
2021-11-08 18:25:28 +00:00
public i(String str, Map<String, String> map) {
String str2;
m.checkParameterIsNotNull(str, "scheme");
m.checkParameterIsNotNull(map, "authParams");
2022-03-30 16:43:10 +00:00
this.f3653b = str;
2021-11-08 18:25:28 +00:00
LinkedHashMap linkedHashMap = new LinkedHashMap();
for (Map.Entry<String, String> entry : map.entrySet()) {
String key = entry.getKey();
String value = entry.getValue();
if (key != null) {
Locale locale = Locale.US;
m.checkExpressionValueIsNotNull(locale, "US");
str2 = key.toLowerCase(locale);
m.checkExpressionValueIsNotNull(str2, "(this as java.lang.String).toLowerCase(locale)");
} else {
str2 = null;
}
linkedHashMap.put(str2, value);
}
Map<String, String> unmodifiableMap = Collections.unmodifiableMap(linkedHashMap);
m.checkExpressionValueIsNotNull(unmodifiableMap, "unmodifiableMap<String?, String>(newAuthParams)");
this.a = unmodifiableMap;
}
public boolean equals(Object obj) {
if (obj instanceof i) {
i iVar = (i) obj;
2022-03-30 16:43:10 +00:00
if (m.areEqual(iVar.f3653b, this.f3653b) && m.areEqual(iVar.a, this.a)) {
2021-11-08 18:25:28 +00:00
return true;
}
}
return false;
}
public int hashCode() {
2022-03-30 16:43:10 +00:00
return this.a.hashCode() + a.m(this.f3653b, 899, 31);
2021-06-27 20:44:35 +00:00
}
public String toString() {
2022-03-30 16:43:10 +00:00
return this.f3653b + " authParams=" + this.a;
2021-06-27 20:44:35 +00:00
}
}