35 lines
1017 B
Java
35 lines
1017 B
Java
|
package com.google.android.gms.internal.measurement;
|
||
|
|
||
|
import java.util.concurrent.ConcurrentHashMap;
|
||
|
import java.util.concurrent.ConcurrentMap;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class zzlk {
|
||
|
private static final zzlk zza = new zzlk();
|
||
|
private final ConcurrentMap<Class<?>, zzln<?>> zzc = new ConcurrentHashMap();
|
||
|
private final zzlo zzb = new zzku();
|
||
|
|
||
|
private zzlk() {
|
||
|
}
|
||
|
|
||
|
public final <T> zzln<T> zzb(Class<T> cls) {
|
||
|
zzkf.zzf(cls, "messageType");
|
||
|
zzln<T> zzlnVar = (zzln) this.zzc.get(cls);
|
||
|
if (zzlnVar == null) {
|
||
|
zzlnVar = this.zzb.zza(cls);
|
||
|
zzkf.zzf(cls, "messageType");
|
||
|
zzkf.zzf(zzlnVar, "schema");
|
||
|
zzln<T> zzlnVar2 = (zzln) this.zzc.putIfAbsent(cls, zzlnVar);
|
||
|
if (zzlnVar2 != null) {
|
||
|
return zzlnVar2;
|
||
|
}
|
||
|
}
|
||
|
return zzlnVar;
|
||
|
}
|
||
|
|
||
|
public static zzlk zza() {
|
||
|
return zza;
|
||
|
}
|
||
|
}
|