discord-jadx/app/src/main/java/c/i/a/c/d1.java

43 lines
1.2 KiB
Java

package c.i.a.c;
import androidx.annotation.Nullable;
import c.i.a.c.i2.f0;
import com.airbnb.lottie.parser.AnimatableValueParser;
/* compiled from: PlaybackParameters */
public final class d1 {
public static final d1 a = new d1(1.0f, 1.0f);
public final float b;
/* renamed from: c reason: collision with root package name */
public final float f782c;
public final int d;
public d1(float f, float f2) {
boolean z2 = true;
AnimatableValueParser.k(f > 0.0f);
AnimatableValueParser.k(f2 <= 0.0f ? false : z2);
this.b = f;
this.f782c = f2;
this.d = Math.round(f * 1000.0f);
}
public boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (obj == null || d1.class != obj.getClass()) {
return false;
}
d1 d1Var = (d1) obj;
return this.b == d1Var.b && this.f782c == d1Var.f782c;
}
public int hashCode() {
return Float.floatToRawIntBits(this.f782c) + ((Float.floatToRawIntBits(this.b) + 527) * 31);
}
public String toString() {
return f0.k("PlaybackParameters(speed=%.2f, pitch=%.2f)", Float.valueOf(this.b), Float.valueOf(this.f782c));
}
}