Package foundation.icon.icx.data
Class IconAmount
- java.lang.Object
-
- foundation.icon.icx.data.IconAmount
-
public class IconAmount extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IconAmount.Unit
-
Constructor Summary
Constructors Constructor Description IconAmount(java.math.BigDecimal value, int digit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimal
asDecimal()
java.math.BigInteger
asInteger()
IconAmount
convertUnit(int digit)
IconAmount
convertUnit(IconAmount.Unit unit)
int
getDigit()
static IconAmount
of(java.lang.String loop, int digit)
static IconAmount
of(java.lang.String loop, IconAmount.Unit unit)
static IconAmount
of(java.math.BigDecimal loop, int digit)
static IconAmount
of(java.math.BigDecimal loop, IconAmount.Unit unit)
static IconAmount
of(java.math.BigInteger loop, int digit)
static IconAmount
of(java.math.BigInteger loop, IconAmount.Unit unit)
java.math.BigInteger
toLoop()
java.lang.String
toString()
-
-
-
Method Detail
-
getDigit
public int getDigit()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
asInteger
public java.math.BigInteger asInteger()
-
asDecimal
public java.math.BigDecimal asDecimal()
-
toLoop
public java.math.BigInteger toLoop()
-
convertUnit
public IconAmount convertUnit(IconAmount.Unit unit)
-
convertUnit
public IconAmount convertUnit(int digit)
-
of
public static IconAmount of(java.math.BigDecimal loop, int digit)
-
of
public static IconAmount of(java.math.BigDecimal loop, IconAmount.Unit unit)
-
of
public static IconAmount of(java.lang.String loop, int digit)
-
of
public static IconAmount of(java.lang.String loop, IconAmount.Unit unit)
-
of
public static IconAmount of(java.math.BigInteger loop, int digit)
-
of
public static IconAmount of(java.math.BigInteger loop, IconAmount.Unit unit)
-
-