what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzjz.java

53 lines
1.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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();
}
}