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

69 lines
2.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.clearcut;
import java.util.AbstractSet;
import java.util.Iterator;
import java.util.Map;
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX INFO: Add missing generic type declarations: [V, K] */
/* loaded from: classes2.dex */
public class zzer<K, V> extends AbstractSet<Map.Entry<K, V>> {
private final zzei zzos;
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public int size() {
return this.zzos.size();
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public boolean remove(Object obj) {
Map.Entry entry = (Map.Entry) obj;
if (!contains(entry)) {
return false;
}
this.zzos.remove(entry.getKey());
return true;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
public Iterator<Map.Entry<K, V>> iterator() {
return new zzeq(this.zzos, null);
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public boolean contains(Object obj) {
Map.Entry entry = (Map.Entry) obj;
Object obj2 = this.zzos.get(entry.getKey());
Object value = entry.getValue();
if (obj2 != value) {
return obj2 != null && obj2.equals(value);
}
return true;
}
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public void clear() {
this.zzos.clear();
}
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
public /* synthetic */ boolean add(Object obj) {
Map.Entry entry = (Map.Entry) obj;
if (contains(entry)) {
return false;
}
this.zzos.zza((zzei) entry.getKey(), (Comparable) entry.getValue());
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzer(zzei zzeiVar, zzej zzejVar) {
this(zzeiVar);
}
private zzer(zzei zzeiVar) {
this.zzos = zzeiVar;
}
}