IsoFields$Field$2.smali
.class public final enum Lorg/threeten/bp/temporal/IsoFields$Field$2;
.super Lorg/threeten/bp/temporal/IsoFields$Field;
.source "IsoFields.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lorg/threeten/bp/temporal/IsoFields$Field;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4011
name = null
.end annotation
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Ljava/lang/String;I)V
.registers 4
const/4 v0, 0x0
invoke-direct {p0, p1, p2, v0}, Lorg/threeten/bp/temporal/IsoFields$Field;-><init>(Ljava/lang/String;ILorg/threeten/bp/temporal/IsoFields$a;)V
return-void
.end method
# virtual methods
.method public adjustInto(Lsq/a;J)Lsq/a;
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"<R::",
"Lsq/a;",
">(TR;J)TR;"
}
.end annotation
invoke-virtual {p0, p1}, Lorg/threeten/bp/temporal/IsoFields$Field$2;->getFrom(Lsq/b;)J
move-result-wide v0
invoke-virtual {p0}, Lorg/threeten/bp/temporal/IsoFields$Field$2;->range()Lsq/j;
move-result-object v2
invoke-virtual {v2, p2, p3, p0}, Lsq/j;->b(JLsq/e;)J
sget-object v2, Lorg/threeten/bp/temporal/ChronoField;->MONTH_OF_YEAR:Lorg/threeten/bp/temporal/ChronoField;
invoke-interface {p1, v2}, Lsq/b;->getLong(Lsq/e;)J
move-result-wide v3
sub-long/2addr p2, v0
const-wide/16 v0, 0x3
mul-long p2, p2, v0
add-long/2addr v3, p2
invoke-interface {p1, v2, v3, v4}, Lsq/a;->a(Lsq/e;J)Lsq/a;
move-result-object p1
return-object p1
.end method
.method public getBaseUnit()Lsq/h;
.registers 2
sget-object v0, Lorg/threeten/bp/temporal/IsoFields;->e:Lsq/h;
return-object v0
.end method
.method public getFrom(Lsq/b;)J
.registers 6
invoke-interface {p1, p0}, Lsq/b;->isSupported(Lsq/e;)Z
move-result v0
if-eqz v0, :cond_13
sget-object v0, Lorg/threeten/bp/temporal/ChronoField;->MONTH_OF_YEAR:Lorg/threeten/bp/temporal/ChronoField;
invoke-interface {p1, v0}, Lsq/b;->getLong(Lsq/e;)J
move-result-wide v0
const-wide/16 v2, 0x2
add-long/2addr v0, v2
const-wide/16 v2, 0x3
div-long/2addr v0, v2
return-wide v0
:cond_13
new-instance p1, Lsq/i;
const-string v0, "Unsupported field: QuarterOfYear"
invoke-direct {p1, v0}, Lsq/i;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public getRangeUnit()Lsq/h;
.registers 2
sget-object v0, Lorg/threeten/bp/temporal/ChronoUnit;->YEARS:Lorg/threeten/bp/temporal/ChronoUnit;
return-object v0
.end method
.method public isSupportedBy(Lsq/b;)Z
.registers 3
sget-object v0, Lorg/threeten/bp/temporal/ChronoField;->MONTH_OF_YEAR:Lorg/threeten/bp/temporal/ChronoField;
invoke-interface {p1, v0}, Lsq/b;->isSupported(Lsq/e;)Z
move-result v0
if-eqz v0, :cond_10
# invokes: Lorg/threeten/bp/temporal/IsoFields$Field;->isIso(Lsq/b;)Z
invoke-static {p1}, Lorg/threeten/bp/temporal/IsoFields$Field;->access$100(Lsq/b;)Z
move-result p1
if-eqz p1, :cond_10
const/4 p1, 0x1
goto :goto_11
:cond_10
const/4 p1, 0x0
:goto_11
return p1
.end method
.method public range()Lsq/j;
.registers 5
const-wide/16 v0, 0x1
const-wide/16 v2, 0x4
invoke-static {v0, v1, v2, v3}, Lsq/j;->a(JJ)Lsq/j;
move-result-object v0
return-object v0
.end method
.method public rangeRefinedBy(Lsq/b;)Lsq/j;
.registers 2
invoke-virtual {p0}, Lorg/threeten/bp/temporal/IsoFields$Field$2;->range()Lsq/j;
move-result-object p1
return-object p1
.end method
.method public toString()Ljava/lang/String;
.registers 2
const-string v0, "QuarterOfYear"
return-object v0
.end method