package g0;

import android.content.LocusId;
import android.os.Build;
import androidx.annotation.Nullable;
import androidx.core.app.b0;

/* JADX INFO: loaded from: classes.dex */
public final class i {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f26128a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final LocusId f26129b;

    public i(String str) {
        this.f26128a = (String) p0.g.checkStringNotEmpty(str, "id cannot be empty");
        if (Build.VERSION.SDK_INT >= 29) {
            this.f26129b = b0.b(str);
        } else {
            this.f26129b = null;
        }
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || i.class != obj.getClass()) {
            return false;
        }
        String str = ((i) obj).f26128a;
        String str2 = this.f26128a;
        return str2 == null ? str == null : str2.equals(str);
    }

    public final int hashCode() {
        String str = this.f26128a;
        return 31 + (str == null ? 0 : str.hashCode());
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder("LocusIdCompat[");
        sb.append(this.f26128a.length() + "_chars");
        sb.append("]");
        return sb.toString();
    }
}
