54 lines
2.0 KiB
Java
54 lines
2.0 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.Locale;
|
||
|
import org.threeten.bp.temporal.UnsupportedTemporalTypeException;
|
||
|
|
||
|
/* renamed from: o.gtC, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public abstract class AbstractC15533gtC extends gtE implements gsY {
|
||
|
@Override // o.gtK
|
||
|
public boolean isSupported(InterfaceC15537gtP interfaceC15537gtP) {
|
||
|
return interfaceC15537gtP instanceof EnumC15534gtD ? interfaceC15537gtP == EnumC15534gtD.ERA : interfaceC15537gtP != null && interfaceC15537gtP.isSupportedBy(this);
|
||
|
}
|
||
|
|
||
|
@Override // o.gtE, o.gtK
|
||
|
public int get(InterfaceC15537gtP interfaceC15537gtP) {
|
||
|
if (interfaceC15537gtP == EnumC15534gtD.ERA) {
|
||
|
return getValue();
|
||
|
}
|
||
|
return range(interfaceC15537gtP).checkValidIntValue(getLong(interfaceC15537gtP), interfaceC15537gtP);
|
||
|
}
|
||
|
|
||
|
@Override // o.gtK
|
||
|
public long getLong(InterfaceC15537gtP interfaceC15537gtP) {
|
||
|
if (interfaceC15537gtP == EnumC15534gtD.ERA) {
|
||
|
return getValue();
|
||
|
}
|
||
|
if (interfaceC15537gtP instanceof EnumC15534gtD) {
|
||
|
throw new UnsupportedTemporalTypeException("Unsupported field: ".concat(String.valueOf(interfaceC15537gtP)));
|
||
|
}
|
||
|
return interfaceC15537gtP.getFrom(this);
|
||
|
}
|
||
|
|
||
|
@Override // o.gtJ
|
||
|
public InterfaceC15536gtL adjustInto(InterfaceC15536gtL interfaceC15536gtL) {
|
||
|
return interfaceC15536gtL.with(EnumC15534gtD.ERA, getValue());
|
||
|
}
|
||
|
|
||
|
@Override // o.gtE, o.gtK
|
||
|
public <R> R query(gtQ<R> gtq) {
|
||
|
if (gtq == gtM.precision()) {
|
||
|
return (R) gtH.ERAS;
|
||
|
}
|
||
|
if (gtq == gtM.chronology() || gtq == gtM.zone() || gtq == gtM.zoneId() || gtq == gtM.offset() || gtq == gtM.localDate() || gtq == gtM.localTime()) {
|
||
|
return null;
|
||
|
}
|
||
|
return gtq.queryFrom(this);
|
||
|
}
|
||
|
|
||
|
@Override // o.gsY
|
||
|
public String getDisplayName(EnumC15532gtB enumC15532gtB, Locale locale) {
|
||
|
return new C15553gtn().appendText(EnumC15534gtD.ERA, enumC15532gtB).toFormatter(locale).format(this);
|
||
|
}
|
||
|
}
|