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