IsoFields$Field$3.smali
.class public final enum Lorg/threeten/bp/temporal/IsoFields$Field$3;
.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 6
.annotation system Ldalvik/annotation/Signature;
value = {
"<R::",
"Lsq/a;",
">(TR;J)TR;"
}
.end annotation
invoke-virtual {p0}, Lorg/threeten/bp/temporal/IsoFields$Field$3;->range()Lsq/j;
move-result-object v0
invoke-virtual {v0, p2, p3, p0}, Lsq/j;->b(JLsq/e;)J
invoke-virtual {p0, p1}, Lorg/threeten/bp/temporal/IsoFields$Field$3;->getFrom(Lsq/b;)J
move-result-wide v0
invoke-static {p2, p3, v0, v1}, Lrq/d;->f(JJ)J
move-result-wide p2
sget-object v0, Lorg/threeten/bp/temporal/ChronoUnit;->WEEKS:Lorg/threeten/bp/temporal/ChronoUnit;
invoke-interface {p1, p2, p3, v0}, Lsq/a;->b(JLsq/h;)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/ChronoUnit;->WEEKS:Lorg/threeten/bp/temporal/ChronoUnit;
return-object v0
.end method
.method public getDisplayName(Ljava/util/Locale;)Ljava/lang/String;
.registers 3
const-string v0, "locale"
invoke-static {p1, v0}, Lrq/d;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string p1, "Week"
return-object p1
.end method
.method public getFrom(Lsq/b;)J
.registers 4
invoke-interface {p1, p0}, Lsq/b;->isSupported(Lsq/e;)Z
move-result v0
if-eqz v0, :cond_10
invoke-static {p1}, Loq/e;->a(Lsq/b;)Loq/e;
move-result-object p1
# invokes: Lorg/threeten/bp/temporal/IsoFields$Field;->getWeek(Loq/e;)I
invoke-static {p1}, Lorg/threeten/bp/temporal/IsoFields$Field;->access$400(Loq/e;)I
move-result p1
int-to-long v0, p1
return-wide v0
:cond_10
new-instance p1, Lsq/i;
const-string v0, "Unsupported field: WeekOfWeekBasedYear"
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/IsoFields;->d:Lsq/h;
return-object v0
.end method
.method public isSupportedBy(Lsq/b;)Z
.registers 3
sget-object v0, Lorg/threeten/bp/temporal/ChronoField;->EPOCH_DAY: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 7
const-wide/16 v0, 0x1
const-wide/16 v2, 0x34
const-wide/16 v4, 0x35
invoke-static/range {v0 .. v5}, Lsq/j;->a(JJJ)Lsq/j;
move-result-object v0
return-object v0
.end method
.method public rangeRefinedBy(Lsq/b;)Lsq/j;
.registers 3
invoke-interface {p1, p0}, Lsq/b;->isSupported(Lsq/e;)Z
move-result v0
if-eqz v0, :cond_f
invoke-static {p1}, Loq/e;->a(Lsq/b;)Loq/e;
move-result-object p1
# invokes: Lorg/threeten/bp/temporal/IsoFields$Field;->getWeekRange(Loq/e;)Lsq/j;
invoke-static {p1}, Lorg/threeten/bp/temporal/IsoFields$Field;->access$300(Loq/e;)Lsq/j;
move-result-object p1
return-object p1
:cond_f
new-instance p1, Lsq/i;
const-string v0, "Unsupported field: WeekOfWeekBasedYear"
invoke-direct {p1, v0}, Lsq/i;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public resolve(Ljava/util/Map;Lsq/b;Lorg/threeten/bp/format/ResolverStyle;)Lsq/b;
.registers 22
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Lsq/e;",
"Ljava/lang/Long;",
">;",
"Lsq/b;",
"Lorg/threeten/bp/format/ResolverStyle;",
")",
"Lsq/b;"
}
.end annotation
move-object/from16 v0, p0
move-object/from16 v1, p1
move-object/from16 v2, p3
sget-object v3, Lorg/threeten/bp/temporal/IsoFields$Field;->WEEK_BASED_YEAR:Lorg/threeten/bp/temporal/IsoFields$Field;
invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Long;
sget-object v4, Lorg/threeten/bp/temporal/ChronoField;->DAY_OF_WEEK:Lorg/threeten/bp/temporal/ChronoField;
invoke-interface {v1, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/Long;
if-eqz v3, :cond_b1
if-nez v4, :cond_1c
goto/16 :goto_b1
:cond_1c
sget-object v5, Lorg/threeten/bp/temporal/IsoFields$Field;->WEEK_BASED_YEAR:Lorg/threeten/bp/temporal/IsoFields$Field;
invoke-interface {v5}, Lsq/e;->range()Lsq/j;
move-result-object v5
invoke-virtual {v3}, Ljava/lang/Long;->longValue()J
move-result-wide v6
sget-object v3, Lorg/threeten/bp/temporal/IsoFields$Field;->WEEK_BASED_YEAR:Lorg/threeten/bp/temporal/IsoFields$Field;
invoke-virtual {v5, v6, v7, v3}, Lsq/j;->a(JLsq/e;)I
move-result v3
sget-object v5, Lorg/threeten/bp/temporal/IsoFields$Field;->WEEK_OF_WEEK_BASED_YEAR:Lorg/threeten/bp/temporal/IsoFields$Field;
invoke-interface {v1, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/Long;
invoke-virtual {v5}, Ljava/lang/Long;->longValue()J
move-result-wide v5
sget-object v7, Lorg/threeten/bp/format/ResolverStyle;->LENIENT:Lorg/threeten/bp/format/ResolverStyle;
const/4 v8, 0x4
const/4 v9, 0x1
const-wide/16 v10, 0x1
if-ne v2, v7, :cond_72
invoke-virtual {v4}, Ljava/lang/Long;->longValue()J
move-result-wide v12
const-wide/16 v14, 0x0
const-wide/16 v16, 0x7
cmp-long v2, v12, v16
if-lez v2, :cond_53
sub-long/2addr v12, v10
div-long v14, v12, v16
rem-long v12, v12, v16
add-long/2addr v12, v10
goto :goto_5e
:cond_53
cmp-long v2, v12, v10
if-gez v2, :cond_5e
div-long v14, v12, v16
sub-long/2addr v14, v10
rem-long v12, v12, v16
add-long v12, v12, v16
:cond_5e
:goto_5e
invoke-static {v3, v9, v8}, Loq/e;->a(III)Loq/e;
move-result-object v2
sub-long/2addr v5, v10
invoke-virtual {v2, v5, v6}, Loq/e;->e(J)Loq/e;
move-result-object v2
invoke-virtual {v2, v14, v15}, Loq/e;->e(J)Loq/e;
move-result-object v2
sget-object v3, Lorg/threeten/bp/temporal/ChronoField;->DAY_OF_WEEK:Lorg/threeten/bp/temporal/ChronoField;
invoke-virtual {v2, v3, v12, v13}, Loq/e;->a(Lsq/e;J)Loq/e;
move-result-object v2
goto :goto_a3
:cond_72
sget-object v7, Lorg/threeten/bp/temporal/ChronoField;->DAY_OF_WEEK:Lorg/threeten/bp/temporal/ChronoField;
invoke-virtual {v4}, Ljava/lang/Long;->longValue()J
move-result-wide v12
invoke-virtual {v7, v12, v13}, Lorg/threeten/bp/temporal/ChronoField;->checkValidIntValue(J)I
move-result v4
sget-object v7, Lorg/threeten/bp/format/ResolverStyle;->STRICT:Lorg/threeten/bp/format/ResolverStyle;
if-ne v2, v7, :cond_8c
invoke-static {v3, v9, v8}, Loq/e;->a(III)Loq/e;
move-result-object v2
# invokes: Lorg/threeten/bp/temporal/IsoFields$Field;->getWeekRange(Loq/e;)Lsq/j;
invoke-static {v2}, Lorg/threeten/bp/temporal/IsoFields$Field;->access$300(Loq/e;)Lsq/j;
move-result-object v2
invoke-virtual {v2, v5, v6, v0}, Lsq/j;->b(JLsq/e;)J
goto :goto_93
:cond_8c
invoke-virtual/range {p0 .. p0}, Lorg/threeten/bp/temporal/IsoFields$Field$3;->range()Lsq/j;
move-result-object v2
invoke-virtual {v2, v5, v6, v0}, Lsq/j;->b(JLsq/e;)J
:goto_93
invoke-static {v3, v9, v8}, Loq/e;->a(III)Loq/e;
move-result-object v2
sub-long/2addr v5, v10
invoke-virtual {v2, v5, v6}, Loq/e;->e(J)Loq/e;
move-result-object v2
sget-object v3, Lorg/threeten/bp/temporal/ChronoField;->DAY_OF_WEEK:Lorg/threeten/bp/temporal/ChronoField;
int-to-long v4, v4
invoke-virtual {v2, v3, v4, v5}, Loq/e;->a(Lsq/e;J)Loq/e;
move-result-object v2
:goto_a3
invoke-interface {v1, v0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
sget-object v3, Lorg/threeten/bp/temporal/IsoFields$Field;->WEEK_BASED_YEAR:Lorg/threeten/bp/temporal/IsoFields$Field;
invoke-interface {v1, v3}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
sget-object v3, Lorg/threeten/bp/temporal/ChronoField;->DAY_OF_WEEK:Lorg/threeten/bp/temporal/ChronoField;
invoke-interface {v1, v3}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
return-object v2
:cond_b1
:goto_b1
const/4 v1, 0x0
return-object v1
.end method
.method public toString()Ljava/lang/String;
.registers 2
const-string v0, "WeekOfWeekBasedYear"
return-object v0
.end method