TableLayout$Spec.smali

.class public Lim/tpelyyftgw/ui/components/TableLayout$Spec;
.super Ljava/lang/Object;
.source "TableLayout.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lim/tpelyyftgw/ui/components/TableLayout;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "Spec"
.end annotation


# static fields
.field static final DEFAULT_WEIGHT:F

.field static final UNDEFINED:Lim/tpelyyftgw/ui/components/TableLayout$Spec;


# instance fields
.field final alignment:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

.field final span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;

.field final startDefined:Z

.field weight:F


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

    .line 1816
    const/high16 v0, -0x80000000

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/TableLayout;->spec(I)Lim/tpelyyftgw/ui/components/TableLayout$Spec;

    move-result-object v0

    sput-object v0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->UNDEFINED:Lim/tpelyyftgw/ui/components/TableLayout$Spec;

    return-void
.end method

.method private constructor <init>(ZIILim/tpelyyftgw/ui/components/TableLayout$Alignment;F)V
    .registers 8
    .param p1, "startDefined"    # Z
    .param p2, "start"    # I
    .param p3, "size"    # I
    .param p4, "alignment"    # Lim/tpelyyftgw/ui/components/TableLayout$Alignment;
    .param p5, "weight"    # F

    .line 1832
    new-instance v0, Lim/tpelyyftgw/ui/components/TableLayout$Interval;

    add-int v1, p2, p3

    invoke-direct {v0, p2, v1}, Lim/tpelyyftgw/ui/components/TableLayout$Interval;-><init>(II)V

    invoke-direct {p0, p1, v0, p4, p5}, Lim/tpelyyftgw/ui/components/TableLayout$Spec;-><init>(ZLim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$Alignment;F)V

    .line 1833
    return-void
.end method

.method synthetic constructor <init>(ZIILim/tpelyyftgw/ui/components/TableLayout$Alignment;FLim/tpelyyftgw/ui/components/TableLayout$1;)V
    .registers 7
    .param p1, "x0"    # Z
    .param p2, "x1"    # I
    .param p3, "x2"    # I
    .param p4, "x3"    # Lim/tpelyyftgw/ui/components/TableLayout$Alignment;
    .param p5, "x4"    # F
    .param p6, "x5"    # Lim/tpelyyftgw/ui/components/TableLayout$1;

    .line 1815
    invoke-direct/range {p0 .. p5}, Lim/tpelyyftgw/ui/components/TableLayout$Spec;-><init>(ZIILim/tpelyyftgw/ui/components/TableLayout$Alignment;F)V

    return-void
.end method

.method private constructor <init>(ZLim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$Alignment;F)V
    .registers 5
    .param p1, "startDefined"    # Z
    .param p2, "span"    # Lim/tpelyyftgw/ui/components/TableLayout$Interval;
    .param p3, "alignment"    # Lim/tpelyyftgw/ui/components/TableLayout$Alignment;
    .param p4, "weight"    # F

    .line 1824
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 1825
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->startDefined:Z

    .line 1826
    iput-object p2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;

    .line 1827
    iput-object p3, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->alignment:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    .line 1828
    iput p4, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->weight:F

    .line 1829
    return-void
.end method

.method synthetic constructor <init>(ZLim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$Alignment;FLim/tpelyyftgw/ui/components/TableLayout$1;)V
    .registers 6
    .param p1, "x0"    # Z
    .param p2, "x1"    # Lim/tpelyyftgw/ui/components/TableLayout$Interval;
    .param p3, "x2"    # Lim/tpelyyftgw/ui/components/TableLayout$Alignment;
    .param p4, "x3"    # F
    .param p5, "x4"    # Lim/tpelyyftgw/ui/components/TableLayout$1;

    .line 1815
    invoke-direct {p0, p1, p2, p3, p4}, Lim/tpelyyftgw/ui/components/TableLayout$Spec;-><init>(ZLim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$Alignment;F)V

    return-void
.end method

.method static synthetic access$1200(Lim/tpelyyftgw/ui/components/TableLayout$Spec;Z)Lim/tpelyyftgw/ui/components/TableLayout$Alignment;
    .registers 3
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/TableLayout$Spec;
    .param p1, "x1"    # Z

    .line 1815
    invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->getAbsoluteAlignment(Z)Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    move-result-object v0

    return-object v0
.end method

.method private getAbsoluteAlignment(Z)Lim/tpelyyftgw/ui/components/TableLayout$Alignment;
    .registers 4
    .param p1, "horizontal"    # Z

    .line 1836
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->alignment:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    sget-object v1, Lim/tpelyyftgw/ui/components/TableLayout;->UNDEFINED_ALIGNMENT:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    if-eq v0, v1, :cond_9

    .line 1837
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->alignment:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    return-object v0

    .line 1839
    :cond_9
    iget v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->weight:F

    const/4 v1, 0x0

    cmpl-float v0, v0, v1

    if-nez v0, :cond_18

    .line 1840
    if-eqz p1, :cond_15

    sget-object v0, Lim/tpelyyftgw/ui/components/TableLayout;->START:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    goto :goto_17

    :cond_15
    sget-object v0, Lim/tpelyyftgw/ui/components/TableLayout;->BASELINE:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    :goto_17
    return-object v0

    .line 1842
    :cond_18
    sget-object v0, Lim/tpelyyftgw/ui/components/TableLayout;->FILL:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    return-object v0
.end method


# virtual methods
.method final copyWriteAlignment(Lim/tpelyyftgw/ui/components/TableLayout$Alignment;)Lim/tpelyyftgw/ui/components/TableLayout$Spec;
    .registers 6
    .param p1, "alignment"    # Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    .line 1850
    new-instance v0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;

    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->startDefined:Z

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;

    iget v3, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->weight:F

    invoke-direct {v0, v1, v2, p1, v3}, Lim/tpelyyftgw/ui/components/TableLayout$Spec;-><init>(ZLim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$Alignment;F)V

    return-object v0
.end method

.method final copyWriteSpan(Lim/tpelyyftgw/ui/components/TableLayout$Interval;)Lim/tpelyyftgw/ui/components/TableLayout$Spec;
    .registers 6
    .param p1, "span"    # Lim/tpelyyftgw/ui/components/TableLayout$Interval;

    .line 1846
    new-instance v0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;

    iget-boolean v1, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->startDefined:Z

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->alignment:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    iget v3, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->weight:F

    invoke-direct {v0, v1, p1, v2, v3}, Lim/tpelyyftgw/ui/components/TableLayout$Spec;-><init>(ZLim/tpelyyftgw/ui/components/TableLayout$Interval;Lim/tpelyyftgw/ui/components/TableLayout$Alignment;F)V

    return-object v0
.end method

.method public equals(Ljava/lang/Object;)Z
    .registers 7
    .param p1, "that"    # Ljava/lang/Object;

    .line 1859
    const/4 v0, 0x1

    if-ne p0, p1, :cond_4

    .line 1860
    return v0

    .line 1862
    :cond_4
    const/4 v1, 0x0

    if-eqz p1, :cond_2c

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    if-eq v2, v3, :cond_12

    goto :goto_2c

    .line 1866
    :cond_12
    move-object v2, p1

    check-cast v2, Lim/tpelyyftgw/ui/components/TableLayout$Spec;

    .line 1868
    .local v2, "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->alignment:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    iget-object v4, v2, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->alignment:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    invoke-virtual {v3, v4}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_20

    .line 1869
    return v1

    .line 1871
    :cond_20
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;

    iget-object v4, v2, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;

    invoke-virtual {v3, v4}, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_2b

    .line 1872
    return v1

    .line 1875
    :cond_2b
    return v0

    .line 1863
    .end local v2    # "spec":Lim/tpelyyftgw/ui/components/TableLayout$Spec;
    :cond_2c
    :goto_2c
    return v1
.end method

.method final getFlexibility()I
    .registers 3

    .line 1854
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->alignment:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    sget-object v1, Lim/tpelyyftgw/ui/components/TableLayout;->UNDEFINED_ALIGNMENT:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    if-ne v0, v1, :cond_f

    iget v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->weight:F

    const/4 v1, 0x0

    cmpl-float v0, v0, v1

    if-nez v0, :cond_f

    const/4 v0, 0x0

    goto :goto_10

    :cond_f
    const/4 v0, 0x2

    :goto_10
    return v0
.end method

.method public hashCode()I
    .registers 4

    .line 1880
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->span:Lim/tpelyyftgw/ui/components/TableLayout$Interval;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/TableLayout$Interval;->hashCode()I

    move-result v0

    .line 1881
    .local v0, "result":I
    mul-int/lit8 v1, v0, 0x1f

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/TableLayout$Spec;->alignment:Lim/tpelyyftgw/ui/components/TableLayout$Alignment;

    invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I

    move-result v2

    add-int/2addr v1, v2

    .line 1882
    .end local v0    # "result":I
    .local v1, "result":I
    return v1
.end method