package com.google.android.material.datepicker; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import java.util.Arrays; /* loaded from: classes2.dex */ public final class a implements Parcelable { public static final Parcelable.Creator CREATOR = new C0070a(); /* renamed from: a, reason: collision with root package name */ private final l f4463a; /* renamed from: b, reason: collision with root package name */ private final l f4464b; /* renamed from: c, reason: collision with root package name */ private final l f4465c; /* renamed from: d, reason: collision with root package name */ private final c f4466d; /* renamed from: e, reason: collision with root package name */ private final int f4467e; /* renamed from: f, reason: collision with root package name */ private final int f4468f; /* renamed from: com.google.android.material.datepicker.a$a, reason: collision with other inner class name */ static class C0070a implements Parcelable.Creator { C0070a() { } @Override // android.os.Parcelable.Creator /* renamed from: a, reason: merged with bridge method [inline-methods] */ public a createFromParcel(Parcel parcel) { return new a((l) parcel.readParcelable(l.class.getClassLoader()), (l) parcel.readParcelable(l.class.getClassLoader()), (l) parcel.readParcelable(l.class.getClassLoader()), (c) parcel.readParcelable(c.class.getClassLoader()), null); } @Override // android.os.Parcelable.Creator /* renamed from: b, reason: merged with bridge method [inline-methods] */ public a[] newArray(int i10) { return new a[i10]; } } public static final class b { /* renamed from: e, reason: collision with root package name */ static final long f4469e = u.a(l.b(1900, 0).f4554g); /* renamed from: f, reason: collision with root package name */ static final long f4470f = u.a(l.b(2100, 11).f4554g); /* renamed from: a, reason: collision with root package name */ private long f4471a; /* renamed from: b, reason: collision with root package name */ private long f4472b; /* renamed from: c, reason: collision with root package name */ private Long f4473c; /* renamed from: d, reason: collision with root package name */ private c f4474d; b(a aVar) { this.f4471a = f4469e; this.f4472b = f4470f; this.f4474d = g.a(Long.MIN_VALUE); this.f4471a = aVar.f4463a.f4554g; this.f4472b = aVar.f4464b.f4554g; this.f4473c = Long.valueOf(aVar.f4465c.f4554g); this.f4474d = aVar.f4466d; } public a a() { if (this.f4473c == null) { long t10 = j.t(); long j10 = this.f4471a; if (j10 > t10 || t10 > this.f4472b) { t10 = j10; } this.f4473c = Long.valueOf(t10); } Bundle bundle = new Bundle(); bundle.putParcelable("DEEP_COPY_VALIDATOR_KEY", this.f4474d); return new a(l.c(this.f4471a), l.c(this.f4472b), l.c(this.f4473c.longValue()), (c) bundle.getParcelable("DEEP_COPY_VALIDATOR_KEY"), null); } public b b(long j10) { this.f4473c = Long.valueOf(j10); return this; } } public interface c extends Parcelable { boolean O(long j10); } /* synthetic */ a(l lVar, l lVar2, l lVar3, c cVar, C0070a c0070a) { this(lVar, lVar2, lVar3, cVar); } @Override // android.os.Parcelable public int describeContents() { return 0; } public c e() { return this.f4466d; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof a)) { return false; } a aVar = (a) obj; return this.f4463a.equals(aVar.f4463a) && this.f4464b.equals(aVar.f4464b) && this.f4465c.equals(aVar.f4465c) && this.f4466d.equals(aVar.f4466d); } l f() { return this.f4464b; } int g() { return this.f4468f; } l h() { return this.f4465c; } public int hashCode() { return Arrays.hashCode(new Object[]{this.f4463a, this.f4464b, this.f4465c, this.f4466d}); } l i() { return this.f4463a; } int j() { return this.f4467e; } @Override // android.os.Parcelable public void writeToParcel(Parcel parcel, int i10) { parcel.writeParcelable(this.f4463a, 0); parcel.writeParcelable(this.f4464b, 0); parcel.writeParcelable(this.f4465c, 0); parcel.writeParcelable(this.f4466d, 0); } private a(l lVar, l lVar2, l lVar3, c cVar) { this.f4463a = lVar; this.f4464b = lVar2; this.f4465c = lVar3; this.f4466d = cVar; if (lVar.compareTo(lVar3) > 0) { throw new IllegalArgumentException("start Month cannot be after current Month"); } if (lVar3.compareTo(lVar2) > 0) { throw new IllegalArgumentException("current Month cannot be after end Month"); } this.f4468f = lVar.i(lVar2) + 1; this.f4467e = (lVar2.f4551d - lVar.f4551d) + 1; } }