64 lines
1.5 KiB
Java
64 lines
1.5 KiB
Java
package com.google.android.gms.internal.measurement;
|
|
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/* JADX INFO: Add missing generic type declarations: [V, K] */
|
|
/* loaded from: classes.dex */
|
|
final class zzwq<K, V> implements Iterator<Map.Entry<K, V>> {
|
|
private int a;
|
|
private Iterator<Map.Entry<K, V>> b;
|
|
private final /* synthetic */ zzwo c;
|
|
|
|
private zzwq(zzwo zzwoVar) {
|
|
List list;
|
|
this.c = zzwoVar;
|
|
list = this.c.b;
|
|
this.a = list.size();
|
|
}
|
|
|
|
private final Iterator<Map.Entry<K, V>> a() {
|
|
Map map;
|
|
if (this.b == null) {
|
|
map = this.c.f;
|
|
this.b = map.entrySet().iterator();
|
|
}
|
|
return this.b;
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final boolean hasNext() {
|
|
List list;
|
|
int i = this.a;
|
|
if (i > 0) {
|
|
list = this.c.b;
|
|
if (i <= list.size()) {
|
|
return true;
|
|
}
|
|
}
|
|
return a().hasNext();
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final /* synthetic */ Object next() {
|
|
List list;
|
|
if (a().hasNext()) {
|
|
return a().next();
|
|
}
|
|
list = this.c.b;
|
|
int i = this.a - 1;
|
|
this.a = i;
|
|
return (Map.Entry) list.get(i);
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public final void remove() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
/* synthetic */ zzwq(zzwo zzwoVar, zzwp zzwpVar) {
|
|
this(zzwoVar);
|
|
}
|
|
}
|