111 lines
3.5 KiB
Java
111 lines
3.5 KiB
Java
package com.discord.widgets.guildscheduledevent;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
import java.io.Serializable;
|
|
import java.util.Calendar;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: GuildScheduledEventPickerDateTime.kt */
|
|
public final class GuildScheduledEventPickerDate implements Serializable {
|
|
public static final Companion Companion = new Companion(null);
|
|
private final int dayOfMonth;
|
|
private final int month;
|
|
private final int year;
|
|
|
|
/* compiled from: GuildScheduledEventPickerDateTime.kt */
|
|
public static final class Companion {
|
|
private Companion() {
|
|
}
|
|
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public final GuildScheduledEventPickerDate now() {
|
|
Calendar instance = Calendar.getInstance();
|
|
return new GuildScheduledEventPickerDate(instance.get(1), instance.get(2), instance.get(5));
|
|
}
|
|
}
|
|
|
|
public GuildScheduledEventPickerDate(int i, int i2, int i3) {
|
|
this.year = i;
|
|
this.month = i2;
|
|
this.dayOfMonth = i3;
|
|
}
|
|
|
|
public static /* synthetic */ GuildScheduledEventPickerDate copy$default(GuildScheduledEventPickerDate guildScheduledEventPickerDate, int i, int i2, int i3, int i4, Object obj) {
|
|
if ((i4 & 1) != 0) {
|
|
i = guildScheduledEventPickerDate.year;
|
|
}
|
|
if ((i4 & 2) != 0) {
|
|
i2 = guildScheduledEventPickerDate.month;
|
|
}
|
|
if ((i4 & 4) != 0) {
|
|
i3 = guildScheduledEventPickerDate.dayOfMonth;
|
|
}
|
|
return guildScheduledEventPickerDate.copy(i, i2, i3);
|
|
}
|
|
|
|
public final int component1() {
|
|
return this.year;
|
|
}
|
|
|
|
public final int component2() {
|
|
return this.month;
|
|
}
|
|
|
|
public final int component3() {
|
|
return this.dayOfMonth;
|
|
}
|
|
|
|
public final GuildScheduledEventPickerDate copy(int i, int i2, int i3) {
|
|
return new GuildScheduledEventPickerDate(i, i2, i3);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof GuildScheduledEventPickerDate)) {
|
|
return false;
|
|
}
|
|
GuildScheduledEventPickerDate guildScheduledEventPickerDate = (GuildScheduledEventPickerDate) obj;
|
|
return this.year == guildScheduledEventPickerDate.year && this.month == guildScheduledEventPickerDate.month && this.dayOfMonth == guildScheduledEventPickerDate.dayOfMonth;
|
|
}
|
|
|
|
public final int getDayOfMonth() {
|
|
return this.dayOfMonth;
|
|
}
|
|
|
|
public final int getMonth() {
|
|
return this.month;
|
|
}
|
|
|
|
public final int getYear() {
|
|
return this.year;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
return (((this.year * 31) + this.month) * 31) + this.dayOfMonth;
|
|
}
|
|
|
|
public final long toMillis() {
|
|
Calendar instance = Calendar.getInstance();
|
|
instance.set(this.year, this.month, this.dayOfMonth, 0, 0);
|
|
m.checkNotNullExpressionValue(instance, "Calendar.getInstance().a…, dayOfMonth, 0, 0)\n }");
|
|
return instance.getTimeInMillis();
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
StringBuilder L = a.L("GuildScheduledEventPickerDate(year=");
|
|
L.append(this.year);
|
|
L.append(", month=");
|
|
L.append(this.month);
|
|
L.append(", dayOfMonth=");
|
|
return a.w(L, this.dayOfMonth, ")");
|
|
}
|
|
}
|