- All Known Implementing Classes:
CurrencyUnit.CustomToken
,CurrencyUnit.Ever
,CurrencyUnit.Tokens
public interface CurrencyUnit
The interface Currency unit.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
The type Custom token.static enum
The enum Ever.static enum
The enum Tokens. -
Method Summary
Modifier and TypeMethodDescriptionint
decimals()
Decimals int.factor()
Factor big decimal.default BigInteger
Nanos big integer.default BigInteger
nanos
(BigDecimal decimalAmount) Nanos big integer.static BigInteger
VALUE
(CurrencyUnit unit, String amount) Value big integer.static BigInteger
VALUE
(CurrencyUnit unit, BigDecimal amount) Value big integer.
-
Method Details
-
factor
-
decimals
int decimals()Decimals int.- Returns:
- the int
-
VALUE
Value big integer.- Parameters:
unit
- the unitamount
- the amount- Returns:
- the big integer
-
VALUE
Value big integer.- Parameters:
unit
- the unitamount
- the amount- Returns:
- the big integer
-
nanos
Nanos big integer.- Parameters:
decimalAmount
- the decimal amount- Returns:
- the big integer
-
nanos
Nanos big integer.- Parameters:
stringAmount
- the string amount- Returns:
- the big integer
-