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

65 lines
1.6 KiB
Java

package com.google.android.gms.internal.firebase_ml;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/* JADX INFO: Add missing generic type declarations: [V, K] */
/* loaded from: classes2.dex */
final class zzwj<K, V> implements Iterator<Map.Entry<K, V>> {
private int pos;
private Iterator<Map.Entry<K, V>> zzbse;
private final zzwh zzbsf;
private zzwj(zzwh zzwhVar) {
List list;
this.zzbsf = zzwhVar;
list = zzwhVar.zzbrz;
this.pos = list.size();
}
@Override // java.util.Iterator
public final boolean hasNext() {
List list;
int i = this.pos;
if (i > 0) {
list = this.zzbsf.zzbrz;
if (i <= list.size()) {
return true;
}
}
return zztc().hasNext();
}
@Override // java.util.Iterator
public final void remove() {
throw new UnsupportedOperationException();
}
private final Iterator<Map.Entry<K, V>> zztc() {
Map map;
if (this.zzbse == null) {
map = this.zzbsf.zzbsc;
this.zzbse = map.entrySet().iterator();
}
return this.zzbse;
}
@Override // java.util.Iterator
public final /* synthetic */ Object next() {
List list;
if (zztc().hasNext()) {
return zztc().next();
}
list = this.zzbsf.zzbrz;
int i = this.pos - 1;
this.pos = i;
return (Map.Entry) list.get(i);
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzwj(zzwh zzwhVar, zzwi zzwiVar) {
this(zzwhVar);
}
}