package com.google.android.gms.internal.vision; 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 zzii extends AbstractSet> { private final zzhz zzaal; private zzii(zzhz zzhzVar) { this.zzaal = zzhzVar; } @Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set public Iterator> iterator() { return new zzih(this.zzaal, null); } @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set public int size() { return this.zzaal.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.zzaal.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.zzaal.remove(entry.getKey()); return true; } @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set public void clear() { this.zzaal.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.zzaal.zza((zzhz) entry.getKey(), (Comparable) entry.getValue()); return true; } /* JADX INFO: Access modifiers changed from: package-private */ public /* synthetic */ zzii(zzhz zzhzVar, zzia zziaVar) { this(zzhzVar); } }