what-the-bank/sources/com/google/android/gms/internal/clearcut/zzeq.java

87 lines
2.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.clearcut;
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 zzeq<K, V> implements Iterator<Map.Entry<K, V>> {
private int pos;
private Iterator<Map.Entry<K, V>> zzor;
private final zzei zzos;
private boolean zzow;
@Override // java.util.Iterator
public final void remove() {
List list;
if (!this.zzow) {
throw new IllegalStateException("remove() was called before next()");
}
this.zzow = false;
this.zzos.zzdu();
int i = this.pos;
list = this.zzos.zzom;
if (i >= list.size()) {
zzdw().remove();
return;
}
zzei zzeiVar = this.zzos;
int i2 = this.pos;
this.pos = i2 - 1;
zzeiVar.zzal(i2);
}
@Override // java.util.Iterator
public final /* synthetic */ Object next() {
List list;
Map.Entry<K, V> next;
List list2;
this.zzow = true;
int i = this.pos + 1;
this.pos = i;
list = this.zzos.zzom;
if (i < list.size()) {
list2 = this.zzos.zzom;
next = (Map.Entry<K, V>) list2.get(this.pos);
} else {
next = zzdw().next();
}
return next;
}
@Override // java.util.Iterator
public final boolean hasNext() {
List list;
Map map;
int i = this.pos + 1;
list = this.zzos.zzom;
if (i >= list.size()) {
map = this.zzos.zzon;
if (map.isEmpty() || !zzdw().hasNext()) {
return false;
}
}
return true;
}
private final Iterator<Map.Entry<K, V>> zzdw() {
Map map;
if (this.zzor == null) {
map = this.zzos.zzon;
this.zzor = map.entrySet().iterator();
}
return this.zzor;
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzeq(zzei zzeiVar, zzej zzejVar) {
this(zzeiVar);
}
private zzeq(zzei zzeiVar) {
this.zzos = zzeiVar;
this.pos = -1;
}
}