discord-jadx/app/src/main/java/d0/d0/c.java
2021-06-27 22:44:35 +02:00

46 lines
1.2 KiB
Java

package d0.d0;
import java.util.Iterator;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: Progressions.kt */
public class c implements Iterable<Long>, d0.z.d.g0.a {
public final long i;
public final long j;
public final long k;
/* compiled from: Progressions.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
static {
new a(null);
}
public c(long j, long j2, long j3) {
if (j3 == 0) {
throw new IllegalArgumentException("Step must be non-zero.");
} else if (j3 != Long.MIN_VALUE) {
this.i = j;
this.j = d0.x.c.getProgressionLastElement(j, j2, j3);
this.k = j3;
} else {
throw new IllegalArgumentException("Step must be greater than Long.MIN_VALUE to avoid overflow on negation.");
}
}
public final long getFirst() {
return this.i;
}
public final long getLast() {
return this.j;
}
/* Return type fixed from 'd0.t.d0' to match base method */
@Override // java.lang.Iterable
public Iterator<Long> iterator() {
return new d(this.i, this.j, this.k);
}
}