- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package androidx.collection;
|
|
|
|
import java.util.Iterator;
|
|
import kotlin.jvm.internal.markers.KMappedMarker;
|
|
|
|
/* JADX INFO: Add missing generic type declarations: [T] */
|
|
/* loaded from: classes.dex */
|
|
public final class SparseArrayKt$valueIterator$1<T> implements Iterator<T>, KMappedMarker {
|
|
final /* synthetic */ SparseArrayCompat<T> $this_valueIterator;
|
|
private int index;
|
|
|
|
public final int getIndex() {
|
|
return this.index;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public void remove() {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
|
|
public final void setIndex(int i) {
|
|
this.index = i;
|
|
}
|
|
|
|
public SparseArrayKt$valueIterator$1(SparseArrayCompat<T> sparseArrayCompat) {
|
|
this.$this_valueIterator = sparseArrayCompat;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public boolean hasNext() {
|
|
return this.index < this.$this_valueIterator.size();
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public T next() {
|
|
SparseArrayCompat<T> sparseArrayCompat = this.$this_valueIterator;
|
|
int i = this.index;
|
|
this.index = i + 1;
|
|
return sparseArrayCompat.valueAt(i);
|
|
}
|
|
}
|