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

66 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* renamed from: o.dKp, reason: case insensitive filesystem */
/* loaded from: classes.dex */
final class C8424dKp {
/* renamed from: o.dKp$RVV */
/* loaded from: classes.dex */
interface RVV<T> {
T a();
boolean a(T t);
void c(T[] tArr, int i);
}
/* renamed from: o.dKp$IeS */
/* loaded from: classes.dex */
static class IeS<T> implements RVV<T> {
private int a;
private final Object[] b = new Object[256];
@Override // o.C8424dKp.RVV
public final T a() {
int i = this.a;
if (i <= 0) {
return null;
}
int i2 = i - 1;
Object[] objArr = this.b;
T t = (T) objArr[i2];
objArr[i2] = null;
this.a = i2;
return t;
}
@Override // o.C8424dKp.RVV
public final boolean a(T t) {
int i = this.a;
Object[] objArr = this.b;
if (i >= objArr.length) {
return false;
}
objArr[i] = t;
this.a = i + 1;
return true;
}
@Override // o.C8424dKp.RVV
public final void c(T[] tArr, int i) {
if (i > tArr.length) {
i = tArr.length;
}
for (int i2 = 0; i2 < i; i2++) {
T t = tArr[i2];
int i3 = this.a;
Object[] objArr = this.b;
if (i3 < objArr.length) {
objArr[i3] = t;
this.a = i3 + 1;
}
}
}
}
}