69 lines
2.2 KiB
Java
69 lines
2.2 KiB
Java
|
package com.google.android.gms.internal.firebase_ml;
|
||
|
|
||
|
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 zzwq<K, V> extends AbstractSet<Map.Entry<K, V>> {
|
||
|
private final zzwh zzbsf;
|
||
|
|
||
|
private zzwq(zzwh zzwhVar) {
|
||
|
this.zzbsf = zzwhVar;
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
|
||
|
public Iterator<Map.Entry<K, V>> iterator() {
|
||
|
return new zzwp(this.zzbsf, null);
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||
|
public int size() {
|
||
|
return this.zzbsf.size();
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||
|
public boolean contains(Object obj) {
|
||
|
Map.Entry entry = (Map.Entry) obj;
|
||
|
Object obj2 = this.zzbsf.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 boolean remove(Object obj) {
|
||
|
Map.Entry entry = (Map.Entry) obj;
|
||
|
if (!contains(entry)) {
|
||
|
return false;
|
||
|
}
|
||
|
this.zzbsf.remove(entry.getKey());
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
||
|
public void clear() {
|
||
|
this.zzbsf.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.zzbsf.zza((zzwh) entry.getKey(), (Comparable) entry.getValue());
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public /* synthetic */ zzwq(zzwh zzwhVar, zzwi zzwiVar) {
|
||
|
this(zzwhVar);
|
||
|
}
|
||
|
}
|