package org.joda.time;

import java.io.Serializable;

/* loaded from: classes.dex */
public abstract class DateTimeFieldType implements Serializable {
    private static final long serialVersionUID = -42615285973990L;
    private final String iName;

    /* renamed from: p, reason: collision with root package name */
    private static final DateTimeFieldType f31841p = new StandardDateTimeFieldType("era", (byte) 1, DurationFieldType.c(), null);

    /* renamed from: q, reason: collision with root package name */
    private static final DateTimeFieldType f31842q = new StandardDateTimeFieldType("yearOfEra", (byte) 2, DurationFieldType.n(), DurationFieldType.c());

    /* renamed from: r, reason: collision with root package name */
    private static final DateTimeFieldType f31843r = new StandardDateTimeFieldType("centuryOfEra", (byte) 3, DurationFieldType.a(), DurationFieldType.c());

    /* renamed from: s, reason: collision with root package name */
    private static final DateTimeFieldType f31844s = new StandardDateTimeFieldType("yearOfCentury", (byte) 4, DurationFieldType.n(), DurationFieldType.a());

    /* renamed from: t, reason: collision with root package name */
    private static final DateTimeFieldType f31845t = new StandardDateTimeFieldType("year", (byte) 5, DurationFieldType.n(), null);

    /* renamed from: u, reason: collision with root package name */
    private static final DateTimeFieldType f31846u = new StandardDateTimeFieldType("dayOfYear", (byte) 6, DurationFieldType.b(), DurationFieldType.n());

    /* renamed from: v, reason: collision with root package name */
    private static final DateTimeFieldType f31847v = new StandardDateTimeFieldType("monthOfYear", (byte) 7, DurationFieldType.j(), DurationFieldType.n());

    /* renamed from: w, reason: collision with root package name */
    private static final DateTimeFieldType f31848w = new StandardDateTimeFieldType("dayOfMonth", (byte) 8, DurationFieldType.b(), DurationFieldType.j());

    /* renamed from: x, reason: collision with root package name */
    private static final DateTimeFieldType f31849x = new StandardDateTimeFieldType("weekyearOfCentury", (byte) 9, DurationFieldType.m(), DurationFieldType.a());

    /* renamed from: y, reason: collision with root package name */
    private static final DateTimeFieldType f31850y = new StandardDateTimeFieldType("weekyear", (byte) 10, DurationFieldType.m(), null);

    /* renamed from: z, reason: collision with root package name */
    private static final DateTimeFieldType f31851z = new StandardDateTimeFieldType("weekOfWeekyear", (byte) 11, DurationFieldType.l(), DurationFieldType.m());
    private static final DateTimeFieldType A = new StandardDateTimeFieldType("dayOfWeek", (byte) 12, DurationFieldType.b(), DurationFieldType.l());
    private static final DateTimeFieldType B = new StandardDateTimeFieldType("halfdayOfDay", (byte) 13, DurationFieldType.f(), DurationFieldType.b());
    private static final DateTimeFieldType C = new StandardDateTimeFieldType("hourOfHalfday", (byte) 14, DurationFieldType.g(), DurationFieldType.f());
    private static final DateTimeFieldType D = new StandardDateTimeFieldType("clockhourOfHalfday", (byte) 15, DurationFieldType.g(), DurationFieldType.f());
    private static final DateTimeFieldType E = new StandardDateTimeFieldType("clockhourOfDay", (byte) 16, DurationFieldType.g(), DurationFieldType.b());
    private static final DateTimeFieldType F = new StandardDateTimeFieldType("hourOfDay", (byte) 17, DurationFieldType.g(), DurationFieldType.b());
    private static final DateTimeFieldType G = new StandardDateTimeFieldType("minuteOfDay", (byte) 18, DurationFieldType.i(), DurationFieldType.b());
    private static final DateTimeFieldType H = new StandardDateTimeFieldType("minuteOfHour", (byte) 19, DurationFieldType.i(), DurationFieldType.g());
    private static final DateTimeFieldType I = new StandardDateTimeFieldType("secondOfDay", (byte) 20, DurationFieldType.k(), DurationFieldType.b());
    private static final DateTimeFieldType J = new StandardDateTimeFieldType("secondOfMinute", (byte) 21, DurationFieldType.k(), DurationFieldType.i());
    private static final DateTimeFieldType K = new StandardDateTimeFieldType("millisOfDay", (byte) 22, DurationFieldType.h(), DurationFieldType.b());
    private static final DateTimeFieldType L = new StandardDateTimeFieldType("millisOfSecond", (byte) 23, DurationFieldType.h(), DurationFieldType.k());

    /* loaded from: classes.dex */
    private static class StandardDateTimeFieldType extends DateTimeFieldType {
        private static final long serialVersionUID = -9937958251642L;
        private final transient DurationFieldType M;
        private final transient DurationFieldType N;
        private final byte iOrdinal;

        StandardDateTimeFieldType(String str, byte b10, DurationFieldType durationFieldType, DurationFieldType durationFieldType2) {
            super(str);
            this.iOrdinal = b10;
            this.M = durationFieldType;
            this.N = durationFieldType2;
        }

        private Object readResolve() {
            switch (this.iOrdinal) {
                case 1:
                    return DateTimeFieldType.f31841p;
                case 2:
                    return DateTimeFieldType.f31842q;
                case 3:
                    return DateTimeFieldType.f31843r;
                case 4:
                    return DateTimeFieldType.f31844s;
                case 5:
                    return DateTimeFieldType.f31845t;
                case 6:
                    return DateTimeFieldType.f31846u;
                case 7:
                    return DateTimeFieldType.f31847v;
                case 8:
                    return DateTimeFieldType.f31848w;
                case 9:
                    return DateTimeFieldType.f31849x;
                case 10:
                    return DateTimeFieldType.f31850y;
                case 11:
                    return DateTimeFieldType.f31851z;
                case 12:
                    return DateTimeFieldType.A;
                case 13:
                    return DateTimeFieldType.B;
                case 14:
                    return DateTimeFieldType.C;
                case 15:
                    return DateTimeFieldType.D;
                case 16:
                    return DateTimeFieldType.E;
                case 17:
                    return DateTimeFieldType.F;
                case 18:
                    return DateTimeFieldType.G;
                case 19:
                    return DateTimeFieldType.H;
                case 20:
                    return DateTimeFieldType.I;
                case 21:
                    return DateTimeFieldType.J;
                case 22:
                    return DateTimeFieldType.K;
                case 23:
                    return DateTimeFieldType.L;
                default:
                    return this;
            }
        }

        @Override // org.joda.time.DateTimeFieldType
        public DurationFieldType E() {
            return this.M;
        }

        @Override // org.joda.time.DateTimeFieldType
        public b F(a aVar) {
            a c10 = c.c(aVar);
            switch (this.iOrdinal) {
                case 1:
                    return c10.i();
                case 2:
                    return c10.N();
                case 3:
                    return c10.b();
                case 4:
                    return c10.M();
                case 5:
                    return c10.L();
                case 6:
                    return c10.g();
                case 7:
                    return c10.y();
                case 8:
                    return c10.e();
                case 9:
                    return c10.H();
                case 10:
                    return c10.G();
                case 11:
                    return c10.E();
                case 12:
                    return c10.f();
                case 13:
                    return c10.n();
                case 14:
                    return c10.q();
                case 15:
                    return c10.d();
                case 16:
                    return c10.c();
                case 17:
                    return c10.p();
                case 18:
                    return c10.v();
                case 19:
                    return c10.w();
                case 20:
                    return c10.A();
                case 21:
                    return c10.B();
                case 22:
                    return c10.t();
                case 23:
                    return c10.u();
                default:
                    throw new InternalError();
            }
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof StandardDateTimeFieldType) && this.iOrdinal == ((StandardDateTimeFieldType) obj).iOrdinal;
        }

        public int hashCode() {
            return 1 << this.iOrdinal;
        }
    }

    protected DateTimeFieldType(String str) {
        this.iName = str;
    }

    public static DateTimeFieldType A() {
        return f31848w;
    }

    public static DateTimeFieldType B() {
        return A;
    }

    public static DateTimeFieldType C() {
        return f31846u;
    }

    public static DateTimeFieldType D() {
        return f31841p;
    }

    public static DateTimeFieldType H() {
        return B;
    }

    public static DateTimeFieldType I() {
        return F;
    }

    public static DateTimeFieldType J() {
        return C;
    }

    public static DateTimeFieldType K() {
        return K;
    }

    public static DateTimeFieldType L() {
        return L;
    }

    public static DateTimeFieldType M() {
        return G;
    }

    public static DateTimeFieldType N() {
        return H;
    }

    public static DateTimeFieldType O() {
        return f31847v;
    }

    public static DateTimeFieldType P() {
        return I;
    }

    public static DateTimeFieldType Q() {
        return J;
    }

    public static DateTimeFieldType R() {
        return f31851z;
    }

    public static DateTimeFieldType S() {
        return f31850y;
    }

    public static DateTimeFieldType T() {
        return f31849x;
    }

    public static DateTimeFieldType U() {
        return f31845t;
    }

    public static DateTimeFieldType V() {
        return f31844s;
    }

    public static DateTimeFieldType W() {
        return f31842q;
    }

    public static DateTimeFieldType x() {
        return f31843r;
    }

    public static DateTimeFieldType y() {
        return E;
    }

    public static DateTimeFieldType z() {
        return D;
    }

    public abstract DurationFieldType E();

    public abstract b F(a aVar);

    public String G() {
        return this.iName;
    }

    public String toString() {
        return G();
    }
}
