package org.joda.time.format;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes5.dex */
public class l implements c, k {

    /* renamed from: p, reason: collision with root package name */
    private final k f32148p;

    private l(k kVar) {
        this.f32148p = kVar;
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public static c b(k kVar) {
        if (kVar instanceof e) {
            return ((e) kVar).a();
        }
        if (kVar instanceof c) {
            return (c) kVar;
        }
        if (kVar == null) {
            return null;
        }
        return new l(kVar);
    }

    @Override // org.joda.time.format.c
    public int a(d dVar, String str, int i10) {
        return this.f32148p.parseInto(dVar, str, i10);
    }

    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj instanceof l) {
            return this.f32148p.equals(((l) obj).f32148p);
        }
        return false;
    }

    @Override // org.joda.time.format.c, org.joda.time.format.k
    public int estimateParsedLength() {
        return this.f32148p.estimateParsedLength();
    }

    public int hashCode() {
        return this.f32148p.hashCode();
    }

    @Override // org.joda.time.format.k
    public int parseInto(d dVar, CharSequence charSequence, int i10) {
        return this.f32148p.parseInto(dVar, charSequence, i10);
    }
}
