package org.joda.time.field;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Locale;
import org.joda.time.DateTimeFieldType;

/* loaded from: classes5.dex */
public final class UnsupportedDateTimeField extends org.joda.time.b implements Serializable {

    /* renamed from: p, reason: collision with root package name */
    private static HashMap f32031p = null;
    private static final long serialVersionUID = -1934618396111902255L;
    private final org.joda.time.d iDurationField;
    private final DateTimeFieldType iType;

    private UnsupportedDateTimeField(DateTimeFieldType dateTimeFieldType, org.joda.time.d dVar) {
        if (dateTimeFieldType == null || dVar == null) {
            throw new IllegalArgumentException();
        }
        this.iType = dateTimeFieldType;
        this.iDurationField = dVar;
    }

    public static synchronized UnsupportedDateTimeField F(DateTimeFieldType dateTimeFieldType, org.joda.time.d dVar) {
        UnsupportedDateTimeField unsupportedDateTimeField;
        synchronized (UnsupportedDateTimeField.class) {
            HashMap hashMap = f32031p;
            unsupportedDateTimeField = null;
            if (hashMap == null) {
                f32031p = new HashMap(7);
            } else {
                UnsupportedDateTimeField unsupportedDateTimeField2 = (UnsupportedDateTimeField) hashMap.get(dateTimeFieldType);
                if (unsupportedDateTimeField2 == null || unsupportedDateTimeField2.l() == dVar) {
                    unsupportedDateTimeField = unsupportedDateTimeField2;
                }
            }
            if (unsupportedDateTimeField == null) {
                unsupportedDateTimeField = new UnsupportedDateTimeField(dateTimeFieldType, dVar);
                f32031p.put(dateTimeFieldType, unsupportedDateTimeField);
            }
        }
        return unsupportedDateTimeField;
    }

    private UnsupportedOperationException G() {
        return new UnsupportedOperationException(this.iType + " field is unsupported");
    }

    private Object readResolve() {
        return F(this.iType, this.iDurationField);
    }

    @Override // org.joda.time.b
    public long A(long j10) {
        throw G();
    }

    @Override // org.joda.time.b
    public long B(long j10) {
        throw G();
    }

    @Override // org.joda.time.b
    public long C(long j10, int i10) {
        throw G();
    }

    @Override // org.joda.time.b
    public long D(long j10, String str, Locale locale) {
        throw G();
    }

    @Override // org.joda.time.b
    public long a(long j10, int i10) {
        return l().a(j10, i10);
    }

    @Override // org.joda.time.b
    public long b(long j10, long j11) {
        return l().e(j10, j11);
    }

    @Override // org.joda.time.b
    public int c(long j10) {
        throw G();
    }

    @Override // org.joda.time.b
    public String d(int i10, Locale locale) {
        throw G();
    }

    @Override // org.joda.time.b
    public String e(long j10, Locale locale) {
        throw G();
    }

    @Override // org.joda.time.b
    public String f(org.joda.time.i iVar, Locale locale) {
        throw G();
    }

    @Override // org.joda.time.b
    public String g(int i10, Locale locale) {
        throw G();
    }

    @Override // org.joda.time.b
    public String h(long j10, Locale locale) {
        throw G();
    }

    @Override // org.joda.time.b
    public String i(org.joda.time.i iVar, Locale locale) {
        throw G();
    }

    @Override // org.joda.time.b
    public int j(long j10, long j11) {
        return l().g(j10, j11);
    }

    @Override // org.joda.time.b
    public long k(long j10, long j11) {
        return l().m(j10, j11);
    }

    @Override // org.joda.time.b
    public org.joda.time.d l() {
        return this.iDurationField;
    }

    @Override // org.joda.time.b
    public org.joda.time.d m() {
        return null;
    }

    @Override // org.joda.time.b
    public int n(Locale locale) {
        throw G();
    }

    @Override // org.joda.time.b
    public int o() {
        throw G();
    }

    @Override // org.joda.time.b
    public int p() {
        throw G();
    }

    @Override // org.joda.time.b
    public String q() {
        return this.iType.G();
    }

    @Override // org.joda.time.b
    public org.joda.time.d r() {
        return null;
    }

    @Override // org.joda.time.b
    public DateTimeFieldType s() {
        return this.iType;
    }

    @Override // org.joda.time.b
    public boolean t(long j10) {
        throw G();
    }

    public String toString() {
        return "UnsupportedDateTimeField";
    }

    @Override // org.joda.time.b
    public boolean u() {
        return false;
    }

    @Override // org.joda.time.b
    public boolean v() {
        return false;
    }

    @Override // org.joda.time.b
    public long w(long j10) {
        throw G();
    }

    @Override // org.joda.time.b
    public long x(long j10) {
        throw G();
    }

    @Override // org.joda.time.b
    public long y(long j10) {
        throw G();
    }

    @Override // org.joda.time.b
    public long z(long j10) {
        throw G();
    }
}
