41 lines
1.1 KiB
Java
41 lines
1.1 KiB
Java
package com.google.android.gms.internal.firebase_ml;
|
|
|
|
import java.lang.reflect.Array;
|
|
import java.util.Iterator;
|
|
import java.util.NoSuchElementException;
|
|
|
|
/* JADX INFO: Add missing generic type declarations: [T] */
|
|
/* loaded from: classes2.dex */
|
|
final class zzic<T> implements Iterator<T> {
|
|
private int index = 0;
|
|
private final int length;
|
|
private final zzib zzaag;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public zzic(zzib zzibVar) {
|
|
this.zzaag = zzibVar;
|
|
this.length = Array.getLength(zzibVar.zzaaf);
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final T next() {
|
|
if (!hasNext()) {
|
|
throw new NoSuchElementException();
|
|
}
|
|
Object obj = this.zzaag.zzaaf;
|
|
int i = this.index;
|
|
this.index = i + 1;
|
|
return (T) Array.get(obj, i);
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final void remove() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final boolean hasNext() {
|
|
return this.index < this.length;
|
|
}
|
|
}
|