- All Known Implementing Classes:
CurrencyUnit.CustomToken,CurrencyUnit.Ever,CurrencyUnit.Tokens
public interface CurrencyUnit
The interface Currency unit.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe type Custom token.static enumThe enum Ever.static enumThe enum Tokens. -
Method Summary
Modifier and TypeMethodDescriptionintdecimals()Decimals int.factor()Factor big decimal.default BigIntegerNanos big integer.default BigIntegernanos(BigDecimal decimalAmount) Nanos big integer.static BigIntegerVALUE(CurrencyUnit unit, String amount) Value big integer.static BigIntegerVALUE(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
-