discord-jadx/app/src/main/java/b/f/j/d/f.java

54 lines
1.2 KiB
Java
Raw Normal View History

2021-12-21 23:37:30 +00:00
package b.f.j.d;
2021-06-27 20:44:35 +00:00
import androidx.annotation.Nullable;
2021-12-21 23:37:30 +00:00
import b.c.a.a0.d;
2022-03-02 20:59:20 +00:00
/* compiled from: RotationOptions.java */
2022-04-12 20:58:48 +00:00
/* loaded from: classes2.dex */
2021-06-27 20:44:35 +00:00
public class f {
public static final f a = new f(-1, false);
2021-12-21 23:37:30 +00:00
/* renamed from: b reason: collision with root package name */
2022-04-04 20:51:55 +00:00
public static final f f566b = new f(-1, true);
2021-12-21 23:37:30 +00:00
public final int c;
2021-06-27 20:44:35 +00:00
public final boolean d;
public f(int i, boolean z2) {
2021-12-21 23:37:30 +00:00
this.c = i;
2021-06-27 20:44:35 +00:00
this.d = z2;
}
public int a() {
if (!c()) {
2021-12-21 23:37:30 +00:00
return this.c;
2021-06-27 20:44:35 +00:00
}
throw new IllegalStateException("Rotation is set to use EXIF");
}
public boolean b() {
2021-12-21 23:37:30 +00:00
return this.c != -2;
2021-06-27 20:44:35 +00:00
}
public boolean c() {
2021-12-21 23:37:30 +00:00
return this.c == -1;
2021-06-27 20:44:35 +00:00
}
public boolean equals(@Nullable Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof f)) {
return false;
}
f fVar = (f) obj;
2021-12-21 23:37:30 +00:00
return this.c == fVar.c && this.d == fVar.d;
2021-06-27 20:44:35 +00:00
}
public int hashCode() {
2022-01-27 00:50:41 +00:00
return d.K0(Integer.valueOf(this.c), Boolean.valueOf(this.d));
2021-06-27 20:44:35 +00:00
}
public String toString() {
2021-12-21 23:37:30 +00:00
return String.format(null, "%d defer:%b", Integer.valueOf(this.c), Boolean.valueOf(this.d));
2021-06-27 20:44:35 +00:00
}
}