package E1;

import android.os.Bundle;
import android.os.Parcelable;

/* JADX INFO: loaded from: classes.dex */
public final class L extends P {

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final Class f2039m;

    public L(Class cls) {
        super(true);
        if (!Parcelable.class.isAssignableFrom(cls)) {
            throw new IllegalArgumentException((cls + " does not implement Parcelable.").toString());
        }
        try {
            this.f2039m = Class.forName("[L" + cls.getName() + ';');
        } catch (ClassNotFoundException e8) {
            throw new RuntimeException(e8);
        }
    }

    @Override // E1.P
    public final Object a(String str, Bundle bundle) {
        return (Parcelable[]) bundle.get(str);
    }

    @Override // E1.P
    public final String b() {
        return this.f2039m.getName();
    }

    @Override // E1.P
    public final Object c(String str) {
        P6.g.e(str, "value");
        throw new UnsupportedOperationException("Arrays don't support default values.");
    }

    @Override // E1.P
    public final void d(Bundle bundle, String str, Object obj) {
        Parcelable[] parcelableArr = (Parcelable[]) obj;
        P6.g.e(str, "key");
        this.f2039m.cast(parcelableArr);
        bundle.putParcelableArray(str, parcelableArr);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || !L.class.equals(obj.getClass())) {
            return false;
        }
        return P6.g.a(this.f2039m, ((L) obj).f2039m);
    }

    public final int hashCode() {
        return this.f2039m.hashCode();
    }
}
