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

121 lines
3.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.res.Resources;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Arrays;
/* loaded from: classes2.dex */
public final class VPp implements Parcelable {
public static final Parcelable.Creator<VPp> CREATOR = new Parcelable.Creator<VPp>() { // from class: o.VPp.4
@Override // android.os.Parcelable.Creator
public final /* synthetic */ VPp createFromParcel(Parcel parcel) {
return new VPp(parcel);
}
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ VPp[] newArray(int i) {
return new VPp[i];
}
};
int a;
int b;
final rUP c;
final rUP d;
public final int e;
int f;
int i;
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
public VPp() {
this((byte) 0);
}
private VPp(byte b) {
this(0, 0, 10, 0);
}
private VPp(int i, int i2, int i3, int i4) {
this.a = i;
this.b = i2;
this.f = i3;
this.e = i4;
this.i = i >= 12 ? 1 : 0;
this.d = new rUP(59);
this.c = new rUP(i4 == 1 ? 23 : 12);
}
protected VPp(Parcel parcel) {
this(parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt());
}
public final void e(int i) {
if (this.e == 1) {
this.a = i;
} else {
this.a = (i % 12) + (this.i != 1 ? 0 : 12);
}
}
public final int e() {
if (this.e == 1) {
return this.a % 24;
}
int i = this.a;
if (i % 12 == 0) {
return 12;
}
return this.i == 1 ? i - 12 : i;
}
public final int hashCode() {
return Arrays.hashCode(new Object[]{Integer.valueOf(this.e), Integer.valueOf(this.a), Integer.valueOf(this.b), Integer.valueOf(this.f)});
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof VPp)) {
return false;
}
VPp vPp = (VPp) obj;
return this.a == vPp.a && this.b == vPp.b && this.e == vPp.e && this.f == vPp.f;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.a);
parcel.writeInt(this.b);
parcel.writeInt(this.f);
parcel.writeInt(this.e);
}
public static String MS_(Resources resources, CharSequence charSequence, String str) {
try {
return String.format(resources.getConfiguration().locale, str, Integer.valueOf(Integer.parseInt(String.valueOf(charSequence))));
} catch (NumberFormatException unused) {
return null;
}
}
public final void b(int i) {
if (i != this.i) {
this.i = i;
int i2 = this.a;
if (i2 < 12 && i == 1) {
this.a = i2 + 12;
} else {
if (i2 < 12 || i != 0) {
return;
}
this.a = i2 - 12;
}
}
}
}