package q1;

import Z0.o;
import java.util.Arrays;
import java.util.Objects;

/* JADX INFO: renamed from: q1.c, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC2831c implements Cloneable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final char[] f23579a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public long f23580b = -1;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public long f23581c = Long.MAX_VALUE;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public AbstractC2830b f23582d;

    public AbstractC2831c(char[] cArr) {
        this.f23579a = cArr;
    }

    @Override // 
    /* JADX INFO: renamed from: e, reason: merged with bridge method [inline-methods] */
    public AbstractC2831c clone() {
        try {
            return (AbstractC2831c) super.clone();
        } catch (CloneNotSupportedException unused) {
            throw new AssertionError();
        }
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof AbstractC2831c)) {
            return false;
        }
        AbstractC2831c abstractC2831c = (AbstractC2831c) obj;
        if (this.f23580b == abstractC2831c.f23580b && this.f23581c == abstractC2831c.f23581c && Arrays.equals(this.f23579a, abstractC2831c.f23579a)) {
            return Objects.equals(this.f23582d, abstractC2831c.f23582d);
        }
        return false;
    }

    public final String h() {
        String str = new String(this.f23579a);
        if (str.length() < 1) {
            return "";
        }
        long j4 = this.f23581c;
        if (j4 != Long.MAX_VALUE) {
            long j6 = this.f23580b;
            if (j4 >= j6) {
                return str.substring((int) j6, ((int) j4) + 1);
            }
        }
        long j7 = this.f23580b;
        return str.substring((int) j7, ((int) j7) + 1);
    }

    public int hashCode() {
        int iHashCode = Arrays.hashCode(this.f23579a) * 31;
        long j4 = this.f23580b;
        int i6 = (iHashCode + ((int) (j4 ^ (j4 >>> 32)))) * 31;
        long j6 = this.f23581c;
        int i7 = (i6 + ((int) (j6 ^ (j6 >>> 32)))) * 31;
        AbstractC2830b abstractC2830b = this.f23582d;
        return (i7 + (abstractC2830b != null ? abstractC2830b.hashCode() : 0)) * 31;
    }

    public float j() {
        if (this instanceof C2833e) {
            return ((C2833e) this).j();
        }
        return Float.NaN;
    }

    public int k() {
        if (this instanceof C2833e) {
            return ((C2833e) this).k();
        }
        return 0;
    }

    public final String l() {
        String string = getClass().toString();
        return string.substring(string.lastIndexOf(46) + 1);
    }

    public final void m(long j4) {
        if (this.f23581c != Long.MAX_VALUE) {
            return;
        }
        this.f23581c = j4;
        AbstractC2830b abstractC2830b = this.f23582d;
        if (abstractC2830b != null) {
            abstractC2830b.n(this);
        }
    }

    public String toString() {
        long j4 = this.f23580b;
        long j6 = this.f23581c;
        if (j4 > j6 || j6 == Long.MAX_VALUE) {
            StringBuilder sb = new StringBuilder();
            sb.append(getClass());
            sb.append(" (INVALID, ");
            sb.append(this.f23580b);
            sb.append("-");
            return o.k(this.f23581c, ")", sb);
        }
        return l() + " (" + this.f23580b + " : " + this.f23581c + ") <<" + new String(this.f23579a).substring((int) this.f23580b, ((int) this.f23581c) + 1) + ">>";
    }
}
