53 lines
1.3 KiB
Java
53 lines
1.3 KiB
Java
|
package com.google.android.gms.internal.firebase_ml;
|
||
|
|
||
|
import java.util.Iterator;
|
||
|
import java.util.NoSuchElementException;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
abstract class zzjz<T> implements Iterator<T> {
|
||
|
private int zzaat = zzkb.zzaax;
|
||
|
private T zzaau;
|
||
|
|
||
|
protected abstract T zzid();
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final T zzie() {
|
||
|
this.zzaat = zzkb.zzaay;
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Iterator
|
||
|
public final boolean hasNext() {
|
||
|
zzks.checkState(this.zzaat != zzkb.zzaaz);
|
||
|
int i = zzka.zzaav[this.zzaat - 1];
|
||
|
if (i == 1) {
|
||
|
return true;
|
||
|
}
|
||
|
if (i != 2) {
|
||
|
this.zzaat = zzkb.zzaaz;
|
||
|
this.zzaau = zzid();
|
||
|
if (this.zzaat != zzkb.zzaay) {
|
||
|
this.zzaat = zzkb.zzaaw;
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Iterator
|
||
|
public final T next() {
|
||
|
if (!hasNext()) {
|
||
|
throw new NoSuchElementException();
|
||
|
}
|
||
|
this.zzaat = zzkb.zzaax;
|
||
|
T t = this.zzaau;
|
||
|
this.zzaau = null;
|
||
|
return t;
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Iterator
|
||
|
public final void remove() {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
}
|