84 lines
2.0 KiB
Java
84 lines
2.0 KiB
Java
package o;
|
|
|
|
import java.util.Queue;
|
|
|
|
/* renamed from: o.pWL, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C16584pWL<A, B> {
|
|
public final C1139Wlo<RVV<A>, B> d;
|
|
|
|
public C16584pWL() {
|
|
this(250L);
|
|
}
|
|
|
|
public C16584pWL(long j) {
|
|
this.d = new C1139Wlo<RVV<A>, B>(this, j) { // from class: o.pWL.2
|
|
private C16584pWL a;
|
|
|
|
{
|
|
this.a = this;
|
|
}
|
|
|
|
@Override // o.C1139Wlo
|
|
public final /* synthetic */ void c(Object obj, Object obj2) {
|
|
RVV<?> rvv = (RVV) obj;
|
|
Queue<RVV<?>> queue = RVV.d;
|
|
synchronized (queue) {
|
|
queue.offer(rvv);
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
public final B d(A a) {
|
|
RVV<A> a2 = RVV.a(a);
|
|
B b = this.d.b(a2);
|
|
Queue<RVV<?>> queue = RVV.d;
|
|
synchronized (queue) {
|
|
queue.offer(a2);
|
|
}
|
|
return b;
|
|
}
|
|
|
|
/* renamed from: o.pWL$RVV */
|
|
/* loaded from: classes.dex */
|
|
public static final class RVV<A> {
|
|
static final Queue<RVV<?>> d = FKd.e(0);
|
|
private int a;
|
|
private int b;
|
|
private A e;
|
|
|
|
public static <A> RVV<A> a(A a) {
|
|
RVV<A> rvv;
|
|
Queue<RVV<?>> queue = d;
|
|
synchronized (queue) {
|
|
rvv = (RVV) queue.poll();
|
|
}
|
|
if (rvv == null) {
|
|
rvv = new RVV<>();
|
|
}
|
|
((RVV) rvv).e = a;
|
|
((RVV) rvv).b = 0;
|
|
((RVV) rvv).a = 0;
|
|
return rvv;
|
|
}
|
|
|
|
private RVV() {
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (!(obj instanceof RVV)) {
|
|
return false;
|
|
}
|
|
RVV rvv = (RVV) obj;
|
|
int i = rvv.b;
|
|
int i2 = rvv.a;
|
|
return this.e.equals(rvv.e);
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return this.e.hashCode();
|
|
}
|
|
}
|
|
}
|