what-the-bank/sources/com/google/android/gms/location/zzce.java

74 lines
2.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.location;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
/* loaded from: classes2.dex */
public final class zzce extends AbstractSafeParcelable {
public static final Parcelable.Creator<zzce> CREATOR = new zzcf();
private final int zza;
private final int zzb;
private final int zzc;
private final int zzd;
public zzce(int i, int i2, int i3, int i4) {
Preconditions.checkState(i >= 0 && i <= 23, "Start hour must be in range [0, 23].");
Preconditions.checkState(i2 >= 0 && i2 <= 59, "Start minute must be in range [0, 59].");
Preconditions.checkState(i3 >= 0 && i3 <= 23, "End hour must be in range [0, 23].");
Preconditions.checkState(i4 >= 0 && i4 <= 59, "End minute must be in range [0, 59].");
Preconditions.checkState(((i + i2) + i3) + i4 > 0, "Parameters can't be all 0.");
this.zza = i;
this.zzb = i2;
this.zzc = i3;
this.zzd = i4;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof zzce)) {
return false;
}
zzce zzceVar = (zzce) obj;
return this.zza == zzceVar.zza && this.zzb == zzceVar.zzb && this.zzc == zzceVar.zzc && this.zzd == zzceVar.zzd;
}
public final int hashCode() {
return Objects.hashCode(Integer.valueOf(this.zza), Integer.valueOf(this.zzb), Integer.valueOf(this.zzc), Integer.valueOf(this.zzd));
}
public final String toString() {
int i = this.zza;
int i2 = this.zzb;
int i3 = this.zzc;
int i4 = this.zzd;
StringBuilder sb = new StringBuilder(117);
sb.append("UserPreferredSleepWindow [startHour=");
sb.append(i);
sb.append(", startMinute=");
sb.append(i2);
sb.append(", endHour=");
sb.append(i3);
sb.append(", endMinute=");
sb.append(i4);
sb.append(']');
return sb.toString();
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
Preconditions.checkNotNull(parcel);
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeInt(parcel, 1, this.zza);
SafeParcelWriter.writeInt(parcel, 2, this.zzb);
SafeParcelWriter.writeInt(parcel, 3, this.zzc);
SafeParcelWriter.writeInt(parcel, 4, this.zzd);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
}