what-the-bank/sources/com/google/android/gms/internal/measurement/zzlw.java

59 lines
1.9 KiB
Java

package com.google.android.gms.internal.measurement;
import java.util.AbstractSet;
import java.util.Iterator;
import java.util.Map;
/* loaded from: classes.dex */
final class zzlw extends AbstractSet<Map.Entry> {
final zzlx zza;
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzlw(zzlx zzlxVar, zzlq zzlqVar) {
this.zza = zzlxVar;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public final /* synthetic */ boolean add(Object obj) {
Map.Entry entry = (Map.Entry) obj;
if (contains(entry)) {
return false;
}
this.zza.put((Comparable) entry.getKey(), entry.getValue());
return true;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public final void clear() {
this.zza.clear();
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public final boolean contains(Object obj) {
Map.Entry entry = (Map.Entry) obj;
Object obj2 = this.zza.get(entry.getKey());
Object value = entry.getValue();
return obj2 == value || (obj2 != null && obj2.equals(value));
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public final boolean remove(Object obj) {
Map.Entry entry = (Map.Entry) obj;
if (!contains(entry)) {
return false;
}
this.zza.remove(entry.getKey());
return true;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public final int size() {
return this.zza.size();
}
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
public final Iterator<Map.Entry> iterator() {
return new zzlv(this.zza, null);
}
}