discord-jadx/app/src/main/java/c/f/g/f/c.java

59 lines
1.7 KiB
Java

package c.f.g.f;
import androidx.annotation.ColorInt;
import c.c.a.y.b;
import java.util.Arrays;
/* compiled from: RoundingParams */
public class c {
public int a = 2;
public boolean b = false;
/* renamed from: c reason: collision with root package name */
public float[] f411c = null;
public int d = 0;
public float e = 0.0f;
public int f = 0;
public float g = 0.0f;
public boolean h = false;
public static c a(float f) {
c cVar = new c();
if (cVar.f411c == null) {
cVar.f411c = new float[8];
}
Arrays.fill(cVar.f411c, f);
return cVar;
}
public c b(@ColorInt int i) {
this.d = i;
this.a = 1;
return this;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || c.class != obj.getClass()) {
return false;
}
c cVar = (c) obj;
if (this.b == cVar.b && this.d == cVar.d && Float.compare(cVar.e, this.e) == 0 && this.f == cVar.f && Float.compare(cVar.g, this.g) == 0 && this.a == cVar.a && this.h == cVar.h) {
return Arrays.equals(this.f411c, cVar.f411c);
}
return false;
}
public int hashCode() {
int i = this.a;
int h = (((i != 0 ? b.h(i) : 0) * 31) + (this.b ? 1 : 0)) * 31;
float[] fArr = this.f411c;
int hashCode = (((h + (fArr != null ? Arrays.hashCode(fArr) : 0)) * 31) + this.d) * 31;
float f = this.e;
int floatToIntBits = (((hashCode + (f != 0.0f ? Float.floatToIntBits(f) : 0)) * 31) + this.f) * 31;
float f2 = this.g;
return ((((floatToIntBits + (f2 != 0.0f ? Float.floatToIntBits(f2) : 0)) * 31) + 0) * 31) + (this.h ? 1 : 0);
}
}