package nn;

import java.lang.ref.WeakReference;

/* loaded from: classes3.dex */
final class q0 {

    /* renamed from: a, reason: collision with root package name */
    private final WeakReference f30292a;

    /* renamed from: b, reason: collision with root package name */
    private final int f30293b;

    /* renamed from: c, reason: collision with root package name */
    private ClassLoader f30294c;

    public q0(ClassLoader classLoader) {
        kotlin.jvm.internal.t.g(classLoader, "classLoader");
        this.f30292a = new WeakReference(classLoader);
        this.f30293b = System.identityHashCode(classLoader);
        this.f30294c = classLoader;
    }

    public final void a(ClassLoader classLoader) {
        this.f30294c = classLoader;
    }

    public boolean equals(Object obj) {
        return (obj instanceof q0) && this.f30292a.get() == ((q0) obj).f30292a.get();
    }

    public int hashCode() {
        return this.f30293b;
    }

    public String toString() {
        String obj;
        ClassLoader classLoader = (ClassLoader) this.f30292a.get();
        return (classLoader == null || (obj = classLoader.toString()) == null) ? "<null>" : obj;
    }
}
