ThaiBuddhistEra.smali

.class public final enum Lorg/threeten/bp/chrono/ThaiBuddhistEra;
.super Ljava/lang/Enum;
.source "ThaiBuddhistEra.java"

# interfaces
.implements Lpq/i;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Enum<",
        "Lorg/threeten/bp/chrono/ThaiBuddhistEra;",
        ">;",
        "Lpq/i;"
    }
.end annotation


# static fields
.field public static final synthetic $VALUES:[Lorg/threeten/bp/chrono/ThaiBuddhistEra;

.field public static final enum BE:Lorg/threeten/bp/chrono/ThaiBuddhistEra;

.field public static final enum BEFORE_BE:Lorg/threeten/bp/chrono/ThaiBuddhistEra;


# direct methods
.method public static constructor <clinit>()V
    .registers 5

    new-instance v0, Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    const/4 v1, 0x0

    const-string v2, "BEFORE_BE"

    invoke-direct {v0, v2, v1}, Lorg/threeten/bp/chrono/ThaiBuddhistEra;-><init>(Ljava/lang/String;I)V

    sput-object v0, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->BEFORE_BE:Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    new-instance v0, Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    const/4 v2, 0x1

    const-string v3, "BE"

    invoke-direct {v0, v3, v2}, Lorg/threeten/bp/chrono/ThaiBuddhistEra;-><init>(Ljava/lang/String;I)V

    sput-object v0, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->BE:Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    const/4 v3, 0x2

    new-array v3, v3, [Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    sget-object v4, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->BEFORE_BE:Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    aput-object v4, v3, v1

    aput-object v0, v3, v2

    sput-object v3, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->$VALUES:[Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;I)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V

    return-void
.end method

.method public static of(I)Lorg/threeten/bp/chrono/ThaiBuddhistEra;
    .registers 2

    if-eqz p0, :cond_10

    const/4 v0, 0x1

    if-ne p0, v0, :cond_8

    sget-object p0, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->BE:Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    return-object p0

    :cond_8
    new-instance p0, Loq/b;

    const-string v0, "Era is not valid for ThaiBuddhistEra"

    invoke-direct {p0, v0}, Loq/b;-><init>(Ljava/lang/String;)V

    throw p0

    :cond_10
    sget-object p0, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->BEFORE_BE:Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    return-object p0
.end method

.method public static readExternal(Ljava/io/DataInput;)Lorg/threeten/bp/chrono/ThaiBuddhistEra;
    .registers 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-interface {p0}, Ljava/io/DataInput;->readByte()B

    move-result p0

    invoke-static {p0}, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->of(I)Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    move-result-object p0

    return-object p0
.end method

.method public static valueOf(Ljava/lang/String;)Lorg/threeten/bp/chrono/ThaiBuddhistEra;
    .registers 2

    const-class v0, Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;

    move-result-object p0

    check-cast p0, Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    return-object p0
.end method

.method public static values()[Lorg/threeten/bp/chrono/ThaiBuddhistEra;
    .registers 1

    sget-object v0, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->$VALUES:[Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    invoke-virtual {v0}, [Lorg/threeten/bp/chrono/ThaiBuddhistEra;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lorg/threeten/bp/chrono/ThaiBuddhistEra;

    return-object v0
.end method

.method private writeReplace()Ljava/lang/Object;
    .registers 3

    new-instance v0, Lpq/r;

    const/16 v1, 0x8

    invoke-direct {v0, v1, p0}, Lpq/r;-><init>(BLjava/lang/Object;)V

    return-object v0
.end method


# virtual methods
.method public adjustInto(Lsq/a;)Lsq/a;
    .registers 5

    sget-object v0, Lorg/threeten/bp/temporal/ChronoField;->ERA:Lorg/threeten/bp/temporal/ChronoField;

    invoke-virtual {p0}, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->getValue()I

    move-result v1

    int-to-long v1, v1

    invoke-interface {p1, v0, v1, v2}, Lsq/a;->a(Lsq/e;J)Lsq/a;

    move-result-object p1

    return-object p1
.end method

.method public get(Lsq/e;)I
    .registers 5

    sget-object v0, Lorg/threeten/bp/temporal/ChronoField;->ERA:Lorg/threeten/bp/temporal/ChronoField;

    if-ne p1, v0, :cond_9

    invoke-virtual {p0}, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->getValue()I

    move-result p1

    return p1

    :cond_9
    invoke-virtual {p0, p1}, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->range(Lsq/e;)Lsq/j;

    move-result-object v0

    invoke-virtual {p0, p1}, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->getLong(Lsq/e;)J

    move-result-wide v1

    invoke-virtual {v0, v1, v2, p1}, Lsq/j;->a(JLsq/e;)I

    move-result p1

    return p1
.end method

.method public getDisplayName(Lorg/threeten/bp/format/TextStyle;Ljava/util/Locale;)Ljava/lang/String;
    .registers 5

    new-instance v0, Lorg/threeten/bp/format/DateTimeFormatterBuilder;

    invoke-direct {v0}, Lorg/threeten/bp/format/DateTimeFormatterBuilder;-><init>()V

    sget-object v1, Lorg/threeten/bp/temporal/ChronoField;->ERA:Lorg/threeten/bp/temporal/ChronoField;

    invoke-virtual {v0, v1, p1}, Lorg/threeten/bp/format/DateTimeFormatterBuilder;->a(Lsq/e;Lorg/threeten/bp/format/TextStyle;)Lorg/threeten/bp/format/DateTimeFormatterBuilder;

    invoke-virtual {v0, p2}, Lorg/threeten/bp/format/DateTimeFormatterBuilder;->a(Ljava/util/Locale;)Lqq/b;

    move-result-object p1

    invoke-virtual {p1, p0}, Lqq/b;->a(Lsq/b;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public getLong(Lsq/e;)J
    .registers 5

    sget-object v0, Lorg/threeten/bp/temporal/ChronoField;->ERA:Lorg/threeten/bp/temporal/ChronoField;

    if-ne p1, v0, :cond_a

    invoke-virtual {p0}, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->getValue()I

    move-result p1

    int-to-long v0, p1

    return-wide v0

    :cond_a
    instance-of v0, p1, Lorg/threeten/bp/temporal/ChronoField;

    if-nez v0, :cond_13

    invoke-interface {p1, p0}, Lsq/e;->getFrom(Lsq/b;)J

    move-result-wide v0

    return-wide v0

    :cond_13
    new-instance v0, Lsq/i;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Unsupported field: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Lsq/i;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public getValue()I
    .registers 2

    invoke-virtual {p0}, Ljava/lang/Enum;->ordinal()I

    move-result v0

    return v0
.end method

.method public isSupported(Lsq/e;)Z
    .registers 5

    instance-of v0, p1, Lorg/threeten/bp/temporal/ChronoField;

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eqz v0, :cond_d

    sget-object v0, Lorg/threeten/bp/temporal/ChronoField;->ERA:Lorg/threeten/bp/temporal/ChronoField;

    if-ne p1, v0, :cond_b

    goto :goto_c

    :cond_b
    const/4 v1, 0x0

    :goto_c
    return v1

    :cond_d
    if-eqz p1, :cond_16

    invoke-interface {p1, p0}, Lsq/e;->isSupportedBy(Lsq/b;)Z

    move-result p1

    if-eqz p1, :cond_16

    goto :goto_17

    :cond_16
    const/4 v1, 0x0

    :goto_17
    return v1
.end method

.method public query(Lsq/g;)Ljava/lang/Object;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<R:",
            "Ljava/lang/Object;",
            ">(",
            "Lsq/g<",
            "TR;>;)TR;"
        }
    .end annotation

    invoke-static {}, Lsq/f;->e()Lsq/g;

    move-result-object v0

    if-ne p1, v0, :cond_9

    sget-object p1, Lorg/threeten/bp/temporal/ChronoUnit;->ERAS:Lorg/threeten/bp/temporal/ChronoUnit;

    return-object p1

    :cond_9
    invoke-static {}, Lsq/f;->a()Lsq/g;

    move-result-object v0

    if-eq p1, v0, :cond_33

    invoke-static {}, Lsq/f;->f()Lsq/g;

    move-result-object v0

    if-eq p1, v0, :cond_33

    invoke-static {}, Lsq/f;->g()Lsq/g;

    move-result-object v0

    if-eq p1, v0, :cond_33

    invoke-static {}, Lsq/f;->d()Lsq/g;

    move-result-object v0

    if-eq p1, v0, :cond_33

    invoke-static {}, Lsq/f;->b()Lsq/g;

    move-result-object v0

    if-eq p1, v0, :cond_33

    invoke-static {}, Lsq/f;->c()Lsq/g;

    move-result-object v0

    if-ne p1, v0, :cond_2e

    goto :goto_33

    :cond_2e
    invoke-interface {p1, p0}, Lsq/g;->a(Lsq/b;)Ljava/lang/Object;

    move-result-object p1

    return-object p1

    :cond_33
    :goto_33
    const/4 p1, 0x0

    return-object p1
.end method

.method public range(Lsq/e;)Lsq/j;
    .registers 5

    sget-object v0, Lorg/threeten/bp/temporal/ChronoField;->ERA:Lorg/threeten/bp/temporal/ChronoField;

    if-ne p1, v0, :cond_9

    invoke-interface {p1}, Lsq/e;->range()Lsq/j;

    move-result-object p1

    return-object p1

    :cond_9
    instance-of v0, p1, Lorg/threeten/bp/temporal/ChronoField;

    if-nez v0, :cond_12

    invoke-interface {p1, p0}, Lsq/e;->rangeRefinedBy(Lsq/b;)Lsq/j;

    move-result-object p1

    return-object p1

    :cond_12
    new-instance v0, Lsq/i;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Unsupported field: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Lsq/i;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public writeExternal(Ljava/io/DataOutput;)V
    .registers 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-virtual {p0}, Lorg/threeten/bp/chrono/ThaiBuddhistEra;->getValue()I

    move-result v0

    invoke-interface {p1, v0}, Ljava/io/DataOutput;->writeByte(I)V

    return-void
.end method