what-the-bank/sources/o/QMg.java

65 lines
1.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import o.RDy;
/* loaded from: classes.dex */
public final class QMg {
public final Vzp c;
public final IeS e;
public QMg(RDy.Sts<List<Throwable>> sts) {
this(new Vzp(sts));
}
private QMg(Vzp vzp) {
this.e = new IeS();
this.c = vzp;
}
public final List<Class<?>> c(Class<?> cls) {
List<Class<?>> d;
synchronized (this) {
d = this.c.d(cls);
}
return d;
}
public final <A> List<SCe<A, ?>> b(Class<A> cls) {
List<SCe<?, ?>> list;
synchronized (this) {
IeS.C0092IeS<?> c0092IeS = this.e.a.get(cls);
list = c0092IeS == null ? (List<SCe<A, ?>>) null : c0092IeS.a;
if (list == null) {
list = (List<SCe<A, ?>>) Collections.unmodifiableList(this.c.c(cls));
if (this.e.a.put(cls, new IeS.C0092IeS<>(list)) != null) {
throw new IllegalStateException("Already cached loaders for model: ".concat(String.valueOf(cls)));
}
}
}
return (List<SCe<A, ?>>) list;
}
/* loaded from: classes.dex */
public static class IeS {
public final Map<Class<?>, C0092IeS<?>> a = new HashMap();
IeS() {
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.QMg$IeS$IeS, reason: collision with other inner class name */
/* loaded from: classes.dex */
public static class C0092IeS<Model> {
final List<SCe<Model, ?>> a;
public C0092IeS(List<SCe<Model, ?>> list) {
this.a = list;
}
}
}
}