what-the-bank/sources/com/google/android/libraries/places/internal/zzahc.java

57 lines
1.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.libraries.places.internal;
import java.util.AbstractSet;
import java.util.Iterator;
import java.util.Map;
/* loaded from: classes2.dex */
final class zzahc extends AbstractSet {
final zzahe zza;
@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();
if (obj2 != value) {
return obj2 != null && obj2.equals(value);
}
return true;
}
@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 iterator() {
return new zzaha(this.zza, null);
}
}