package mr;

import java.util.Date;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.Instant;
import org.joda.time.MutableDateTime;
import org.joda.time.format.i;
import org.joda.time.g;

/* loaded from: classes.dex */
public abstract class b implements g {
    @Override // java.lang.Comparable
    /* renamed from: a, reason: merged with bridge method [inline-methods] */
    public int compareTo(g gVar) {
        if (this == gVar) {
            return 0;
        }
        long millis = gVar.getMillis();
        long millis2 = getMillis();
        if (millis2 == millis) {
            return 0;
        }
        return millis2 < millis ? -1 : 1;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof g)) {
            return false;
        }
        g gVar = (g) obj;
        return getMillis() == gVar.getMillis() && org.joda.time.field.d.a(d(), gVar.d());
    }

    public int hashCode() {
        return ((int) (getMillis() ^ (getMillis() >>> 32))) + d().hashCode();
    }

    public DateTime j() {
        return new DateTime(getMillis(), s());
    }

    @Override // org.joda.time.g
    public boolean l(g gVar) {
        return t(org.joda.time.c.g(gVar));
    }

    @Override // org.joda.time.g
    public Instant n() {
        return new Instant(getMillis());
    }

    public DateTimeZone s() {
        return d().m();
    }

    public boolean t(long j10) {
        return getMillis() < j10;
    }

    public String toString() {
        return i.b().i(this);
    }

    public Date u() {
        return new Date(getMillis());
    }

    public MutableDateTime v() {
        return new MutableDateTime(getMillis(), s());
    }
}
