what-the-bank/sources/com/google/android/gms/internal/p002firebaseauthapi/zzaee.java

149 lines
3.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.p002firebaseauthapi;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
/* loaded from: classes2.dex */
public final class zzaee extends LinkedHashMap {
private static final zzaee zza;
private boolean zzb;
static {
zzaee zzaeeVar = new zzaee();
zza = zzaeeVar;
zzaeeVar.zzb = false;
}
private zzaee() {
this.zzb = true;
}
private static int zzf(Object obj) {
if (obj instanceof byte[]) {
return zzadl.zzb((byte[]) obj);
}
if (obj instanceof zzadh) {
throw new UnsupportedOperationException();
}
return obj.hashCode();
}
private final void zzg() {
if (!this.zzb) {
throw new UnsupportedOperationException();
}
}
@Override // java.util.LinkedHashMap, java.util.HashMap, java.util.AbstractMap, java.util.Map
public final void clear() {
zzg();
super.clear();
}
@Override // java.util.LinkedHashMap, java.util.HashMap, java.util.AbstractMap, java.util.Map
public final Set entrySet() {
return isEmpty() ? Collections.emptySet() : super.entrySet();
}
@Override // java.util.AbstractMap, java.util.Map
public final boolean equals(Object obj) {
boolean equals;
if (!(obj instanceof Map)) {
return false;
}
Map map = (Map) obj;
if (this == map) {
return true;
}
if (size() != map.size()) {
return false;
}
Iterator it = entrySet().iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
if (!map.containsKey(entry.getKey())) {
return false;
}
Object value = entry.getValue();
Object obj2 = map.get(entry.getKey());
if (!(value instanceof byte[]) || !(obj2 instanceof byte[])) {
equals = value.equals(obj2);
} else {
equals = Arrays.equals((byte[]) value, (byte[]) obj2);
}
if (!equals) {
return false;
}
}
return true;
}
@Override // java.util.AbstractMap, java.util.Map
public final int hashCode() {
Iterator it = entrySet().iterator();
int i = 0;
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
i += zzf(entry.getValue()) ^ zzf(entry.getKey());
}
return i;
}
@Override // java.util.HashMap, java.util.AbstractMap, java.util.Map
public final Object put(Object obj, Object obj2) {
zzg();
zzadl.zze(obj);
zzadl.zze(obj2);
return super.put(obj, obj2);
}
@Override // java.util.HashMap, java.util.AbstractMap, java.util.Map
public final void putAll(Map map) {
zzg();
for (Object obj : map.keySet()) {
zzadl.zze(obj);
zzadl.zze(map.get(obj));
}
super.putAll(map);
}
@Override // java.util.HashMap, java.util.AbstractMap, java.util.Map
public final Object remove(Object obj) {
zzg();
return super.remove(obj);
}
public final zzaee zzb() {
return isEmpty() ? new zzaee() : new zzaee(this);
}
public final void zzd(zzaee zzaeeVar) {
zzg();
if (zzaeeVar.isEmpty()) {
return;
}
putAll(zzaeeVar);
}
private zzaee(Map map) {
super(map);
this.zzb = true;
}
public final boolean zze() {
return this.zzb;
}
public final void zzc() {
this.zzb = false;
}
public static zzaee zza() {
return zza;
}
}