package q; import android.graphics.Insets; import android.graphics.Rect; /* loaded from: classes.dex */ public final class g { /* renamed from: e, reason: collision with root package name */ public static final g f13293e = new g(0, 0, 0, 0); /* renamed from: a, reason: collision with root package name */ public final int f13294a; /* renamed from: b, reason: collision with root package name */ public final int f13295b; /* renamed from: c, reason: collision with root package name */ public final int f13296c; /* renamed from: d, reason: collision with root package name */ public final int f13297d; private g(int i10, int i11, int i12, int i13) { this.f13294a = i10; this.f13295b = i11; this.f13296c = i12; this.f13297d = i13; } public static g a(g gVar, g gVar2) { return b(Math.max(gVar.f13294a, gVar2.f13294a), Math.max(gVar.f13295b, gVar2.f13295b), Math.max(gVar.f13296c, gVar2.f13296c), Math.max(gVar.f13297d, gVar2.f13297d)); } public static g b(int i10, int i11, int i12, int i13) { return (i10 == 0 && i11 == 0 && i12 == 0 && i13 == 0) ? f13293e : new g(i10, i11, i12, i13); } public static g c(Rect rect) { return b(rect.left, rect.top, rect.right, rect.bottom); } public static g d(Insets insets) { int i10; int i11; int i12; int i13; i10 = insets.left; i11 = insets.top; i12 = insets.right; i13 = insets.bottom; return b(i10, i11, i12, i13); } public Insets e() { Insets of; of = Insets.of(this.f13294a, this.f13295b, this.f13296c, this.f13297d); return of; } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || g.class != obj.getClass()) { return false; } g gVar = (g) obj; return this.f13297d == gVar.f13297d && this.f13294a == gVar.f13294a && this.f13296c == gVar.f13296c && this.f13295b == gVar.f13295b; } public int hashCode() { return (((((this.f13294a * 31) + this.f13295b) * 31) + this.f13296c) * 31) + this.f13297d; } public String toString() { return "Insets{left=" + this.f13294a + ", top=" + this.f13295b + ", right=" + this.f13296c + ", bottom=" + this.f13297d + '}'; } }