31 lines
1.0 KiB
Java
31 lines
1.0 KiB
Java
|
package o;
|
||
|
|
||
|
import org.threeten.bp.temporal.UnsupportedTemporalTypeException;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class gtE implements gtK {
|
||
|
@Override // o.gtK
|
||
|
public gtT range(InterfaceC15537gtP interfaceC15537gtP) {
|
||
|
if (interfaceC15537gtP instanceof EnumC15534gtD) {
|
||
|
if (isSupported(interfaceC15537gtP)) {
|
||
|
return interfaceC15537gtP.range();
|
||
|
}
|
||
|
throw new UnsupportedTemporalTypeException("Unsupported field: ".concat(String.valueOf(interfaceC15537gtP)));
|
||
|
}
|
||
|
return interfaceC15537gtP.rangeRefinedBy(this);
|
||
|
}
|
||
|
|
||
|
@Override // o.gtK
|
||
|
public int get(InterfaceC15537gtP interfaceC15537gtP) {
|
||
|
return range(interfaceC15537gtP).checkValidIntValue(getLong(interfaceC15537gtP), interfaceC15537gtP);
|
||
|
}
|
||
|
|
||
|
@Override // o.gtK
|
||
|
public <R> R query(gtQ<R> gtq) {
|
||
|
if (gtq == gtM.zoneId() || gtq == gtM.chronology() || gtq == gtM.precision()) {
|
||
|
return null;
|
||
|
}
|
||
|
return gtq.queryFrom(this);
|
||
|
}
|
||
|
}
|