what-the-bank/sources/com/google/android/gms/common/server/response/zan.java

115 lines
4.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common.server.response;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
import com.google.android.gms.common.server.response.FastJsonResponse;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/* loaded from: classes.dex */
public final class zan extends AbstractSafeParcelable {
public static final Parcelable.Creator<zan> CREATOR = new zao();
final int zaa;
private final HashMap<String, Map<String, FastJsonResponse.Field<?, ?>>> zab;
private final String zac;
/* JADX INFO: Access modifiers changed from: package-private */
public zan(int i, ArrayList<zal> arrayList, String str) {
this.zaa = i;
HashMap<String, Map<String, FastJsonResponse.Field<?, ?>>> hashMap = new HashMap<>();
int size = arrayList.size();
for (int i2 = 0; i2 < size; i2++) {
zal zalVar = arrayList.get(i2);
String str2 = zalVar.zab;
HashMap hashMap2 = new HashMap();
int size2 = ((ArrayList) Preconditions.checkNotNull(zalVar.zac)).size();
for (int i3 = 0; i3 < size2; i3++) {
zam zamVar = zalVar.zac.get(i3);
hashMap2.put(zamVar.zab, zamVar.zac);
}
hashMap.put(str2, hashMap2);
}
this.zab = hashMap;
this.zac = (String) Preconditions.checkNotNull(str);
zad();
}
public final String toString() {
StringBuilder sb = new StringBuilder();
for (String str : this.zab.keySet()) {
sb.append(str);
sb.append(":\n");
Map<String, FastJsonResponse.Field<?, ?>> map = this.zab.get(str);
for (String str2 : map.keySet()) {
sb.append(" ");
sb.append(str2);
sb.append(": ");
sb.append(map.get(str2));
}
}
return sb.toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, this.zaa);
ArrayList arrayList = new ArrayList();
for (String str : this.zab.keySet()) {
arrayList.add(new zal(str, this.zab.get(str)));
}
SafeParcelWriter.writeTypedList(parcel, 2, arrayList, false);
SafeParcelWriter.writeString(parcel, 3, this.zac, false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
public final Map<String, FastJsonResponse.Field<?, ?>> zab(String str) {
return this.zab.get(str);
}
public final void zac() {
for (String str : this.zab.keySet()) {
Map<String, FastJsonResponse.Field<?, ?>> map = this.zab.get(str);
HashMap hashMap = new HashMap();
for (String str2 : map.keySet()) {
hashMap.put(str2, map.get(str2).zab());
}
this.zab.put(str, hashMap);
}
}
public final void zad() {
Iterator<String> it = this.zab.keySet().iterator();
while (it.hasNext()) {
Map<String, FastJsonResponse.Field<?, ?>> map = this.zab.get(it.next());
Iterator<String> it2 = map.keySet().iterator();
while (it2.hasNext()) {
map.get(it2.next()).zai(this);
}
}
}
public final void zae(Class<? extends FastJsonResponse> cls, Map<String, FastJsonResponse.Field<?, ?>> map) {
this.zab.put((String) Preconditions.checkNotNull(cls.getCanonicalName()), map);
}
public final boolean zaf(Class<? extends FastJsonResponse> cls) {
return this.zab.containsKey(Preconditions.checkNotNull(cls.getCanonicalName()));
}
public zan(Class<? extends FastJsonResponse> cls) {
this.zaa = 1;
this.zab = new HashMap<>();
this.zac = (String) Preconditions.checkNotNull(cls.getCanonicalName());
}
public final String zaa() {
return this.zac;
}
}