package s8; /* loaded from: classes2.dex */ public final class e implements Comparable { /* renamed from: e, reason: collision with root package name */ public static final a f14082e = new a(null); /* renamed from: f, reason: collision with root package name */ public static final e f14083f = f.a(); /* renamed from: a, reason: collision with root package name */ private final int f14084a; /* renamed from: b, reason: collision with root package name */ private final int f14085b; /* renamed from: c, reason: collision with root package name */ private final int f14086c; /* renamed from: d, reason: collision with root package name */ private final int f14087d; public static final class a { private a() { } public /* synthetic */ a(d9.g gVar) { this(); } } public e(int i10, int i11, int i12) { this.f14084a = i10; this.f14085b = i11; this.f14086c = i12; this.f14087d = b(i10, i11, i12); } private final int b(int i10, int i11, int i12) { boolean z10 = false; if (new g9.c(0, 255).f(i10) && new g9.c(0, 255).f(i11) && new g9.c(0, 255).f(i12)) { z10 = true; } if (z10) { return (i10 << 16) + (i11 << 8) + i12; } throw new IllegalArgumentException(("Version components are out of range: " + i10 + '.' + i11 + '.' + i12).toString()); } @Override // java.lang.Comparable /* renamed from: a, reason: merged with bridge method [inline-methods] */ public int compareTo(e eVar) { d9.j.e(eVar, "other"); return this.f14087d - eVar.f14087d; } public boolean equals(Object obj) { if (this == obj) { return true; } e eVar = obj instanceof e ? (e) obj : null; return eVar != null && this.f14087d == eVar.f14087d; } public int hashCode() { return this.f14087d; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append(this.f14084a); sb.append('.'); sb.append(this.f14085b); sb.append('.'); sb.append(this.f14086c); return sb.toString(); } }