package com.google.android.gms.internal.ads;

import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

/* JADX INFO: loaded from: classes2.dex */
public abstract class or1 implements os1 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public transient Set f15162a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public transient Collection f15163b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public transient Map f15164c;

    public abstract Set a();

    public abstract Collection b();

    @Override // com.google.android.gms.internal.ads.os1
    public Map c() {
        Map map = this.f15164c;
        if (map != null) {
            return map;
        }
        Map mapE = e();
        this.f15164c = mapE;
        return mapE;
    }

    public Iterator d() {
        throw null;
    }

    public abstract Map e();

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj instanceof os1) {
            return c().equals(((os1) obj).c());
        }
        return false;
    }

    public boolean f(Object obj) {
        Iterator it = c().values().iterator();
        while (it.hasNext()) {
            if (((Collection) it.next()).contains(obj)) {
                return true;
            }
        }
        return false;
    }

    public Collection g() {
        Collection collection = this.f15163b;
        if (collection != null) {
            return collection;
        }
        Collection collectionB = b();
        this.f15163b = collectionB;
        return collectionB;
    }

    public final int hashCode() {
        return c().hashCode();
    }

    public final String toString() {
        return c().toString();
    }
}
