package o;

import android.os.LocaleList;
import java.util.Locale;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.rM, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2327rM {
    public static final C2327rM b = new C2327rM(new C2422sM(new LocaleList(new Locale[0])));
    public final C2422sM a;

    public C2327rM(C2422sM c2422sM) {
        this.a = c2422sM;
    }

    public static C2327rM a(String str) {
        if (str == null || str.isEmpty()) {
            return b;
        }
        String[] strArrSplit = str.split(",", -1);
        int length = strArrSplit.length;
        Locale[] localeArr = new Locale[length];
        for (int i = 0; i < length; i++) {
            String str2 = strArrSplit[i];
            int i2 = AbstractC2233qM.a;
            localeArr[i] = Locale.forLanguageTag(str2);
        }
        return new C2327rM(new C2422sM(new LocaleList(localeArr)));
    }

    public final boolean equals(Object obj) {
        if (obj instanceof C2327rM) {
            return this.a.equals(((C2327rM) obj).a);
        }
        return false;
    }

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

    public final String toString() {
        return this.a.a.toString();
    }
}
