Ufixed.smali

.class public Lorg/web3j/abi/datatypes/Ufixed;
.super Lorg/web3j/abi/datatypes/FixedPointType;
.source "Ufixed.java"


# static fields
.field public static final DEFAULT:Lorg/web3j/abi/datatypes/Ufixed;

.field public static final TYPE_NAME:Ljava/lang/String; = "ufixed"


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

    .prologue
    .line 11
    new-instance v0, Lorg/web3j/abi/datatypes/Ufixed;

    sget-object v1, Ljava/math/BigInteger;->ZERO:Ljava/math/BigInteger;

    invoke-direct {v0, v1}, Lorg/web3j/abi/datatypes/Ufixed;-><init>(Ljava/math/BigInteger;)V

    sput-object v0, Lorg/web3j/abi/datatypes/Ufixed;->DEFAULT:Lorg/web3j/abi/datatypes/Ufixed;

    return-void
.end method

.method protected constructor <init>(IILjava/math/BigInteger;)V
    .registers 5

    .prologue
    .line 14
    const-string v0, "ufixed"

    invoke-direct {p0, v0, p1, p2, p3}, Lorg/web3j/abi/datatypes/FixedPointType;-><init>(Ljava/lang/String;IILjava/math/BigInteger;)V

    .line 15
    return-void
.end method

.method protected constructor <init>(IILjava/math/BigInteger;Ljava/math/BigInteger;)V
    .registers 6

    .prologue
    .line 26
    invoke-static {p1, p2, p3, p4}, Lorg/web3j/abi/datatypes/Ufixed;->convert(IILjava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;

    move-result-object v0

    invoke-direct {p0, v0}, Lorg/web3j/abi/datatypes/Ufixed;-><init>(Ljava/math/BigInteger;)V

    .line 27
    return-void
.end method

.method public constructor <init>(Ljava/math/BigInteger;)V
    .registers 3

    .prologue
    const/16 v0, 0x80

    .line 18
    invoke-direct {p0, v0, v0, p1}, Lorg/web3j/abi/datatypes/Ufixed;-><init>(IILjava/math/BigInteger;)V

    .line 19
    return-void
.end method

.method public constructor <init>(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
    .registers 4

    .prologue
    .line 22
    invoke-static {p1, p2}, Lorg/web3j/abi/datatypes/Ufixed;->convert(Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/math/BigInteger;

    move-result-object v0

    invoke-direct {p0, v0}, Lorg/web3j/abi/datatypes/Ufixed;-><init>(Ljava/math/BigInteger;)V

    .line 23
    return-void
.end method


# virtual methods
.method valid(IILjava/math/BigInteger;)Z
    .registers 6

    .prologue
    .line 31
    invoke-super {p0, p1, p2, p3}, Lorg/web3j/abi/datatypes/FixedPointType;->valid(IILjava/math/BigInteger;)Z

    move-result v0

    if-eqz v0, :cond_f

    invoke-virtual {p3}, Ljava/math/BigInteger;->signum()I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_f

    const/4 v0, 0x1

    :goto_e
    return v0

    :cond_f
    const/4 v0, 0x0

    goto :goto_e
.end method