65 lines
1.6 KiB
Java
65 lines
1.6 KiB
Java
package com.google.android.gms.internal.vision;
|
|
|
|
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 zzib<K, V> implements Iterator<Map.Entry<K, V>> {
|
|
private int pos;
|
|
private Iterator<Map.Entry<K, V>> zzaak;
|
|
private final zzhz zzaal;
|
|
|
|
private zzib(zzhz zzhzVar) {
|
|
List list;
|
|
this.zzaal = zzhzVar;
|
|
list = zzhzVar.zzaaf;
|
|
this.pos = list.size();
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final boolean hasNext() {
|
|
List list;
|
|
int i = this.pos;
|
|
if (i > 0) {
|
|
list = this.zzaal.zzaaf;
|
|
if (i <= list.size()) {
|
|
return true;
|
|
}
|
|
}
|
|
return zzgz().hasNext();
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final void remove() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
private final Iterator<Map.Entry<K, V>> zzgz() {
|
|
Map map;
|
|
if (this.zzaak == null) {
|
|
map = this.zzaal.zzaai;
|
|
this.zzaak = map.entrySet().iterator();
|
|
}
|
|
return this.zzaak;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final /* synthetic */ Object next() {
|
|
List list;
|
|
if (zzgz().hasNext()) {
|
|
return zzgz().next();
|
|
}
|
|
list = this.zzaal.zzaaf;
|
|
int i = this.pos - 1;
|
|
this.pos = i;
|
|
return (Map.Entry) list.get(i);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public /* synthetic */ zzib(zzhz zzhzVar, zzia zziaVar) {
|
|
this(zzhzVar);
|
|
}
|
|
}
|