what-the-bank/sources/com/google/android/gms/internal/vision/zzfk.java

91 lines
2.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.vision;
import com.google.android.gms.internal.vision.zzfy;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes2.dex */
public class zzfk {
private static volatile boolean zztf = false;
private static volatile zzfk zzth;
private final Map<zza, zzfy.zzf<?, ?>> zztj;
private static final Class<?> zztg = zzei();
static final zzfk zzti = new zzfk(true);
private static Class<?> zzei() {
try {
return Class.forName("com.google.protobuf.Extension");
} catch (ClassNotFoundException unused) {
return null;
}
}
/* loaded from: classes2.dex */
static final class zza {
private final int number;
private final Object object;
zza(Object obj, int i) {
this.object = obj;
this.number = i;
}
public final int hashCode() {
return (System.identityHashCode(this.object) * 65535) + this.number;
}
public final boolean equals(Object obj) {
if (!(obj instanceof zza)) {
return false;
}
zza zzaVar = (zza) obj;
return this.object == zzaVar.object && this.number == zzaVar.number;
}
}
public static zzfk zzej() {
return zzfj.zzef();
}
public static zzfk zzek() {
return zzfj.zzeg();
}
public static zzfk zzel() {
zzfk zzfkVar = zzth;
if (zzfkVar == null) {
synchronized (zzfk.class) {
zzfkVar = zzth;
if (zzfkVar == null) {
zzfkVar = zzfj.zzeh();
zzth = zzfkVar;
}
}
}
return zzfkVar;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static zzfk zzeh() {
return zzfw.zza(zzfk.class);
}
public final <ContainingType extends zzhf> zzfy.zzf<ContainingType, ?> zza(ContainingType containingtype, int i) {
return (zzfy.zzf) this.zztj.get(new zza(containingtype, i));
}
public final void zza(zzfy.zzf<?, ?> zzfVar) {
this.zztj.put(new zza(zzfVar.zzwu, zzfVar.zzww.number), zzfVar);
}
/* JADX INFO: Access modifiers changed from: package-private */
public zzfk() {
this.zztj = new HashMap();
}
private zzfk(boolean z) {
this.zztj = Collections.emptyMap();
}
}