what-the-bank/sources/o/Rmc.java

88 lines
2.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.Insets;
import android.graphics.Rect;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
/* loaded from: classes.dex */
public final class Rmc {
public static final Rmc c = new Rmc(0, 0, 0, 0);
public final int a;
public final int b;
public final int d;
public final int e;
private Rmc(int i, int i2, int i3, int i4) {
this.a = i;
this.b = i2;
this.d = i3;
this.e = i4;
}
public static Rmc e(int i, int i2, int i3, int i4) {
return (i == 0 && i2 == 0 && i3 == 0 && i4 == 0) ? c : new Rmc(i, i2, i3, i4);
}
public static Rmc oB_(Rect rect) {
int i = rect.left;
int i2 = rect.top;
int i3 = rect.right;
int i4 = rect.bottom;
return (i == 0 && i2 == 0 && i3 == 0 && i4 == 0) ? c : new Rmc(i, i2, i3, i4);
}
public static Rmc b(Rmc rmc, Rmc rmc2) {
int max = Math.max(rmc.a, rmc2.a);
int max2 = Math.max(rmc.b, rmc2.b);
int max3 = Math.max(rmc.d, rmc2.d);
int max4 = Math.max(rmc.e, rmc2.e);
if (max == 0 && max2 == 0 && max3 == 0 && max4 == 0) {
return c;
}
return new Rmc(max, max2, max3, max4);
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
Rmc rmc = (Rmc) obj;
return this.e == rmc.e && this.a == rmc.a && this.d == rmc.d && this.b == rmc.b;
}
public final String toString() {
StringBuilder sb = new StringBuilder("Insets{left=");
sb.append(this.a);
sb.append(", top=");
sb.append(this.b);
sb.append(", right=");
sb.append(this.d);
sb.append(", bottom=");
sb.append(this.e);
sb.append(UrlTreeKt.componentParamSuffixChar);
return sb.toString();
}
public static Rmc oC_(Insets insets) {
int i = insets.left;
int i2 = insets.top;
int i3 = insets.right;
int i4 = insets.bottom;
return (i == 0 && i2 == 0 && i3 == 0 && i4 == 0) ? c : new Rmc(i, i2, i3, i4);
}
/* loaded from: classes.dex */
public static class IeS {
public static Insets oD_(int i, int i2, int i3, int i4) {
return Insets.of(i, i2, i3, i4);
}
}
public final int hashCode() {
return (((((this.a * 31) + this.b) * 31) + this.d) * 31) + this.e;
}
}