37 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| package kotlin.jvm.internal;
 | |
| 
 | |
| import java.util.NoSuchElementException;
 | |
| import kotlin.Metadata;
 | |
| import kotlin.collections.DoubleIterator;
 | |
| 
 | |
| /* compiled from: ArrayIterators.kt */
 | |
| @Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0013\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0006\n\u0000\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\bH\u0096\u0002J\b\u0010\t\u001a\u00020\nH\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Lkotlin/jvm/internal/ArrayDoubleIterator;", "Lkotlin/collections/DoubleIterator;", "array", "", "([D)V", "index", "", "hasNext", "", "nextDouble", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
 | |
| /* loaded from: classes.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());
 | |
|         }
 | |
|     }
 | |
| }
 |