- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
34 lines
913 B
Java
34 lines
913 B
Java
package kotlin.jvm.internal;
|
|
|
|
import java.util.NoSuchElementException;
|
|
import kotlin.collections.DoubleIterator;
|
|
|
|
/* loaded from: classes5.dex */
|
|
final class ArrayDoubleIterator extends DoubleIterator {
|
|
private final double[] array;
|
|
private int index;
|
|
|
|
public ArrayDoubleIterator(double[] array) {
|
|
Intrinsics.checkNotNullParameter(array, "array");
|
|
this.array = array;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public boolean hasNext() {
|
|
return this.index < this.array.length;
|
|
}
|
|
|
|
@Override // kotlin.collections.DoubleIterator
|
|
public double nextDouble() {
|
|
try {
|
|
double[] dArr = this.array;
|
|
int i = this.index;
|
|
this.index = i + 1;
|
|
return dArr[i];
|
|
} catch (ArrayIndexOutOfBoundsException e) {
|
|
this.index--;
|
|
throw new NoSuchElementException(e.getMessage());
|
|
}
|
|
}
|
|
}
|