89 lines
2.3 KiB
Java
89 lines
2.3 KiB
Java
package o;
|
|
|
|
import android.util.Log;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import o.RDy;
|
|
|
|
/* renamed from: o.UnO, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C1050UnO {
|
|
private static final LWm<Object> c = new LWm<Object>() { // from class: o.UnO.1
|
|
@Override // o.C1050UnO.LWm
|
|
public final void d(Object obj) {
|
|
}
|
|
};
|
|
|
|
/* renamed from: o.UnO$LWm */
|
|
/* loaded from: classes.dex */
|
|
public interface LWm<T> {
|
|
void d(T t);
|
|
}
|
|
|
|
/* renamed from: o.UnO$RVV */
|
|
/* loaded from: classes.dex */
|
|
public interface RVV<T> {
|
|
T e();
|
|
}
|
|
|
|
/* renamed from: o.UnO$Sts */
|
|
/* loaded from: classes.dex */
|
|
public interface Sts {
|
|
ykj c();
|
|
}
|
|
|
|
public static <T extends Sts> RDy.Sts<T> c(int i, RVV<T> rvv) {
|
|
return new IeS(new RDy.LWm(i), rvv, c);
|
|
}
|
|
|
|
/* renamed from: o.UnO$IeS */
|
|
/* loaded from: classes.dex */
|
|
static final class IeS<T> implements RDy.Sts<T> {
|
|
private final RVV<T> b;
|
|
private final LWm<T> d;
|
|
private final RDy.Sts<T> e;
|
|
|
|
IeS(RDy.Sts<T> sts, RVV<T> rvv, LWm<T> lWm) {
|
|
this.e = sts;
|
|
this.b = rvv;
|
|
this.d = lWm;
|
|
}
|
|
|
|
@Override // o.RDy.Sts
|
|
public final T d() {
|
|
T d = this.e.d();
|
|
if (d == null) {
|
|
d = this.b.e();
|
|
Log.isLoggable("FactoryPools", 2);
|
|
}
|
|
if (d instanceof Sts) {
|
|
d.c().a(false);
|
|
}
|
|
return (T) d;
|
|
}
|
|
|
|
@Override // o.RDy.Sts
|
|
public final boolean d(T t) {
|
|
if (t instanceof Sts) {
|
|
((Sts) t).c().a(true);
|
|
}
|
|
this.d.d(t);
|
|
return this.e.d(t);
|
|
}
|
|
}
|
|
|
|
public static <T> RDy.Sts<List<T>> a() {
|
|
return new IeS(new RDy.LWm(20), new RVV<List<T>>() { // from class: o.UnO.4
|
|
@Override // o.C1050UnO.RVV
|
|
public final /* synthetic */ Object e() {
|
|
return new ArrayList();
|
|
}
|
|
}, new LWm<List<T>>() { // from class: o.UnO.2
|
|
@Override // o.C1050UnO.LWm
|
|
public final /* synthetic */ void d(Object obj) {
|
|
((List) obj).clear();
|
|
}
|
|
});
|
|
}
|
|
}
|