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

121 lines
4.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Locale;
import java.util.Map;
/* renamed from: o.gtD, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public enum EnumC15534gtD implements InterfaceC15537gtP {
NANO_OF_SECOND("NanoOfSecond", gtH.NANOS, gtH.SECONDS, gtT.of(0, 999999999)),
NANO_OF_DAY("NanoOfDay", gtH.NANOS, gtH.DAYS, gtT.of(0, 86399999999999L)),
MICRO_OF_SECOND("MicroOfSecond", gtH.MICROS, gtH.SECONDS, gtT.of(0, 999999)),
MICRO_OF_DAY("MicroOfDay", gtH.MICROS, gtH.DAYS, gtT.of(0, 86399999999L)),
MILLI_OF_SECOND("MilliOfSecond", gtH.MILLIS, gtH.SECONDS, gtT.of(0, 999)),
MILLI_OF_DAY("MilliOfDay", gtH.MILLIS, gtH.DAYS, gtT.of(0, 86399999)),
SECOND_OF_MINUTE("SecondOfMinute", gtH.SECONDS, gtH.MINUTES, gtT.of(0, 59)),
SECOND_OF_DAY("SecondOfDay", gtH.SECONDS, gtH.DAYS, gtT.of(0, 86399)),
MINUTE_OF_HOUR("MinuteOfHour", gtH.MINUTES, gtH.HOURS, gtT.of(0, 59)),
MINUTE_OF_DAY("MinuteOfDay", gtH.MINUTES, gtH.DAYS, gtT.of(0, 1439)),
HOUR_OF_AMPM("HourOfAmPm", gtH.HOURS, gtH.HALF_DAYS, gtT.of(0, 11)),
CLOCK_HOUR_OF_AMPM("ClockHourOfAmPm", gtH.HOURS, gtH.HALF_DAYS, gtT.of(1, 12)),
HOUR_OF_DAY("HourOfDay", gtH.HOURS, gtH.DAYS, gtT.of(0, 23)),
CLOCK_HOUR_OF_DAY("ClockHourOfDay", gtH.HOURS, gtH.DAYS, gtT.of(1, 24)),
AMPM_OF_DAY("AmPmOfDay", gtH.HALF_DAYS, gtH.DAYS, gtT.of(0, 1)),
DAY_OF_WEEK("DayOfWeek", gtH.DAYS, gtH.WEEKS, gtT.of(1, 7)),
ALIGNED_DAY_OF_WEEK_IN_MONTH("AlignedDayOfWeekInMonth", gtH.DAYS, gtH.WEEKS, gtT.of(1, 7)),
ALIGNED_DAY_OF_WEEK_IN_YEAR("AlignedDayOfWeekInYear", gtH.DAYS, gtH.WEEKS, gtT.of(1, 7)),
DAY_OF_MONTH("DayOfMonth", gtH.DAYS, gtH.MONTHS, gtT.of(1, 28, 31)),
DAY_OF_YEAR("DayOfYear", gtH.DAYS, gtH.YEARS, gtT.of(1, 365, 366)),
EPOCH_DAY("EpochDay", gtH.DAYS, gtH.FOREVER, gtT.of(-365243219162L, 365241780471L)),
ALIGNED_WEEK_OF_MONTH("AlignedWeekOfMonth", gtH.WEEKS, gtH.MONTHS, gtT.of(1, 4, 5)),
ALIGNED_WEEK_OF_YEAR("AlignedWeekOfYear", gtH.WEEKS, gtH.YEARS, gtT.of(1, 53)),
MONTH_OF_YEAR("MonthOfYear", gtH.MONTHS, gtH.YEARS, gtT.of(1, 12)),
PROLEPTIC_MONTH("ProlepticMonth", gtH.MONTHS, gtH.FOREVER, gtT.of(-11999999988L, 11999999999L)),
YEAR_OF_ERA("YearOfEra", gtH.YEARS, gtH.FOREVER, gtT.of(1, 999999999, 1000000000)),
YEAR("Year", gtH.YEARS, gtH.FOREVER, gtT.of(-999999999, 999999999)),
ERA("Era", gtH.ERAS, gtH.FOREVER, gtT.of(0, 1)),
INSTANT_SECONDS("InstantSeconds", gtH.SECONDS, gtH.FOREVER, gtT.of(Long.MIN_VALUE, Long.MAX_VALUE)),
OFFSET_SECONDS("OffsetSeconds", gtH.SECONDS, gtH.FOREVER, gtT.of(-64800, 64800));
private final InterfaceC15539gtV baseUnit;
private final String name;
private final gtT range;
private final InterfaceC15539gtV rangeUnit;
@Override // o.InterfaceC15537gtP
public final gtK resolve(Map<InterfaceC15537gtP, Long> map, gtK gtk, gtA gta) {
return null;
}
EnumC15534gtD(String str, InterfaceC15539gtV interfaceC15539gtV, InterfaceC15539gtV interfaceC15539gtV2, gtT gtt) {
this.name = str;
this.baseUnit = interfaceC15539gtV;
this.rangeUnit = interfaceC15539gtV2;
this.range = gtt;
}
@Override // o.InterfaceC15537gtP
public final boolean isDateBased() {
return ordinal() >= DAY_OF_WEEK.ordinal() && ordinal() <= ERA.ordinal();
}
@Override // o.InterfaceC15537gtP
public final boolean isTimeBased() {
return ordinal() < DAY_OF_WEEK.ordinal();
}
public final long checkValidValue(long j) {
return range().checkValidValue(j, this);
}
public final int checkValidIntValue(long j) {
return range().checkValidIntValue(j, this);
}
@Override // o.InterfaceC15537gtP
public final boolean isSupportedBy(gtK gtk) {
return gtk.isSupported(this);
}
@Override // o.InterfaceC15537gtP
public final gtT rangeRefinedBy(gtK gtk) {
return gtk.range(this);
}
@Override // o.InterfaceC15537gtP
public final long getFrom(gtK gtk) {
return gtk.getLong(this);
}
@Override // o.InterfaceC15537gtP
public final <R extends InterfaceC15536gtL> R adjustInto(R r, long j) {
return (R) r.with(this, j);
}
@Override // o.InterfaceC15537gtP
public final String getDisplayName(Locale locale) {
gtG.requireNonNull(locale, "locale");
return toString();
}
@Override // java.lang.Enum
public final String toString() {
return this.name;
}
@Override // o.InterfaceC15537gtP
public final gtT range() {
return this.range;
}
@Override // o.InterfaceC15537gtP
public final InterfaceC15539gtV getRangeUnit() {
return this.rangeUnit;
}
@Override // o.InterfaceC15537gtP
public final InterfaceC15539gtV getBaseUnit() {
return this.baseUnit;
}
}