35 lines
1008 B
Java
35 lines
1008 B
Java
|
package com.google.android.libraries.places.internal;
|
||
|
|
||
|
import java.util.concurrent.ConcurrentHashMap;
|
||
|
import java.util.concurrent.ConcurrentMap;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class zzago {
|
||
|
private static final zzago zza = new zzago();
|
||
|
private final ConcurrentMap zzc = new ConcurrentHashMap();
|
||
|
private final zzags zzb = new zzafy();
|
||
|
|
||
|
private zzago() {
|
||
|
}
|
||
|
|
||
|
public final zzagr zzb(Class cls) {
|
||
|
zzafh.zzf(cls, "messageType");
|
||
|
zzagr zzagrVar = (zzagr) this.zzc.get(cls);
|
||
|
if (zzagrVar == null) {
|
||
|
zzagrVar = this.zzb.zza(cls);
|
||
|
zzafh.zzf(cls, "messageType");
|
||
|
zzafh.zzf(zzagrVar, "schema");
|
||
|
zzagr zzagrVar2 = (zzagr) this.zzc.putIfAbsent(cls, zzagrVar);
|
||
|
if (zzagrVar2 != null) {
|
||
|
return zzagrVar2;
|
||
|
}
|
||
|
}
|
||
|
return zzagrVar;
|
||
|
}
|
||
|
|
||
|
public static zzago zza() {
|
||
|
return zza;
|
||
|
}
|
||
|
}
|