public enum Currency
Enum that models Fiat (e.g. real-world) currencies like Euro or the US Dollar as well as crypto-currencies like Bitcoin and Ethereum
Modifier and Type | Class and Description |
---|---|
static class |
Currency.Companion
Helper methods for retrieving different types of currencies
|
Enum Constant and Description |
---|
AUD |
BCH |
BCN |
BGN |
BRL |
BTC |
CAD |
CHF |
CNY |
CZK |
DASH |
DKK |
DOGE |
EOS |
ETC |
ETH |
EUR |
GBP |
HKD |
HRK |
HUF |
IDR |
ILS |
INR |
JPY |
KRW |
LTC |
MLN |
MXN |
MYR |
NAD |
NOK |
NZD |
PHP |
PLN |
RON |
RUB |
SEK |
SGD |
THB |
TRY |
USD |
XMR |
XRP |
ZAR |
ZEC |
Modifier and Type | Field and Description |
---|---|
static Currency.Companion |
Companion
Helper methods for retrieving different types of currencies
|
Modifier and Type | Method and Description |
---|---|
CurrencyType |
getCurrencyType()
:
|
int |
getDisplayAccuracy()
:
|
java.lang.String |
getSymbol()
:
|
public static Currency EUR
public static Currency USD
public static Currency ZAR
public static Currency NAD
public static Currency JPY
public static Currency BGN
public static Currency CZK
public static Currency DKK
public static Currency GBP
public static Currency HUF
public static Currency PLN
public static Currency RON
public static Currency SEK
public static Currency CHF
public static Currency NOK
public static Currency HRK
public static Currency RUB
public static Currency TRY
public static Currency AUD
public static Currency BRL
public static Currency CAD
public static Currency CNY
public static Currency HKD
public static Currency IDR
public static Currency ILS
public static Currency INR
public static Currency KRW
public static Currency MXN
public static Currency MYR
public static Currency NZD
public static Currency PHP
public static Currency SGD
public static Currency THB
public static Currency BTC
public static Currency BCH
public static Currency BCN
public static Currency DASH
public static Currency DOGE
public static Currency ETH
public static Currency ETC
public static Currency LTC
public static Currency XMR
public static Currency XRP
public static Currency MLN
public static Currency EOS
public static Currency ZEC
public static Currency.Companion Companion
Helper methods for retrieving different types of currencies
public CurrencyType getCurrencyType()
:
The type of currency of a currency. For example, FIAT for Euro or CRYPTO for Bitcoin
public int getDisplayAccuracy()
:
The accuracy with which to generally display the currency's values. This specifies how many digits after the decimal point will be displayed
public java.lang.String getSymbol()
:
The currency's symbol, for example € for Euro