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

40 lines
916 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.NoSuchElementException;
/* renamed from: o.gdd, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C14972gdd extends AbstractC14853gaL {
private int a;
private boolean b;
private final int d;
private final int e;
public C14972gdd(int i, int i2, int i3) {
this.d = i3;
this.e = i2;
boolean z = i3 <= 0 ? i >= i2 : i <= i2;
this.b = z;
this.a = z ? i : i2;
}
@Override // o.AbstractC14853gaL
public final int a() {
int i = this.a;
if (i != this.e) {
this.a = this.d + i;
} else {
if (!this.b) {
throw new NoSuchElementException();
}
this.b = false;
}
return i;
}
@Override // java.util.Iterator
public final boolean hasNext() {
return this.b;
}
}