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

64 lines
1.9 KiB
Java
Raw 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.Map;
import java.util.NoSuchElementException;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class zzhi implements Iterator<Map.Entry<String, Object>> {
private final zzhg zzzf;
private int zzzg = -1;
private zzhl zzzh;
private Object zzzi;
private boolean zzzj;
private boolean zzzk;
private zzhl zzzl;
/* JADX INFO: Access modifiers changed from: package-private */
public zzhi(zzhg zzhgVar) {
this.zzzf = zzhgVar;
}
@Override // java.util.Iterator
public final boolean hasNext() {
if (!this.zzzk) {
this.zzzk = true;
this.zzzi = null;
while (this.zzzi == null) {
int i = this.zzzg + 1;
this.zzzg = i;
if (i >= this.zzzf.zztx.zzyp.size()) {
break;
}
zzhl zzao = this.zzzf.zztx.zzao(this.zzzf.zztx.zzyp.get(this.zzzg));
this.zzzh = zzao;
this.zzzi = zzao.zzh(this.zzzf.object);
}
}
return this.zzzi != null;
}
@Override // java.util.Iterator
public final void remove() {
zzks.checkState((this.zzzl == null || this.zzzj) ? false : true);
this.zzzj = true;
this.zzzl.zzb(this.zzzf.object, null);
}
@Override // java.util.Iterator
public final /* synthetic */ Map.Entry<String, Object> next() {
if (!hasNext()) {
throw new NoSuchElementException();
}
zzhl zzhlVar = this.zzzh;
this.zzzl = zzhlVar;
Object obj = this.zzzi;
this.zzzk = false;
this.zzzj = false;
this.zzzh = null;
this.zzzi = null;
return new zzhh(this.zzzf, zzhlVar, obj);
}
}