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

80 lines
1.9 KiB
Java

package o;
import java.io.Closeable;
import o.C16274mrx;
import o.wDL;
/* loaded from: classes.dex */
public final class rgl implements Closeable {
private static final rgl e = new rgl(new wDL.IeS() { // from class: o.rgl.5
@Override // o.wDL.IeS
public final int e() {
return 0;
}
@Override // java.util.Iterator
public final boolean hasNext() {
return false;
}
});
public final C15901jVT b;
public final wDL.IeS d;
static {
new UcH<Integer>() { // from class: o.rgl.1
@Override // o.UcH
public final /* synthetic */ int a(Integer num) {
return num.intValue();
}
};
}
private rgl(wDL.IeS ieS) {
this(null, ieS);
}
public rgl(C15901jVT c15901jVT, wDL.IeS ieS) {
this.b = c15901jVT;
this.d = ieS;
}
@Override // java.io.Closeable, java.lang.AutoCloseable
public final void close() {
C15901jVT c15901jVT = this.b;
if (c15901jVT == null || c15901jVT.c == null) {
return;
}
this.b.c.run();
this.b.c = null;
}
public static rgl a(int i) {
if (i <= 0) {
return e;
}
int i2 = i - 1;
if (i2 < 0) {
return e;
}
if (i2 != 0) {
return new rgl(new C1103Vrm(i2));
}
return new rgl(new C14608fwS(new int[]{0}));
}
/* JADX WARN: Multi-variable type inference failed */
public final int[] e() {
wDL.IeS ieS = this.d;
C16274mrx.IeS ieS2 = new C16274mrx.IeS();
while (ieS.hasNext()) {
int e2 = ieS.e();
ieS2.b();
int[] iArr = (int[]) ieS2.d;
int i = ieS2.b;
ieS2.b = i + 1;
iArr[i] = e2;
}
return ieS2.a();
}
}