Package com.arakelian.core.enums
Enum IsoCurrencyCode
- java.lang.Object
-
- java.lang.Enum<IsoCurrencyCode>
-
- com.arakelian.core.enums.IsoCurrencyCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IsoCurrencyCode>
public enum IsoCurrencyCode extends java.lang.Enum<IsoCurrencyCode>
ISO 4217 Currency- See Also:
- http://www.xe.com/symbols.php
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.text.NumberFormatcreateNumberFormat()static IsoCurrencyCodefromCountry(IsoCountryCode country)ReturnsIsoCurrencyCodefor given country.static IsoCurrencyCodefromLocaleCountry(java.util.Locale locale)ReturnsIsoCurrencyCodefor given locale.static IsoCurrencyCodefromString(java.lang.String currencyCode)ReturnsIsoCurrencyCodefor given ISO 4217 identifier (case-insensitive).java.lang.StringgetAbbreviation()IsoCountryCodegetCountry()java.lang.StringgetFullName()java.lang.StringgetHtml()java.lang.StringgetResourceBundleKey()java.lang.StringgetSymbol()static IsoCurrencyCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IsoCurrencyCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUD
public static final IsoCurrencyCode AUD
-
BGN
public static final IsoCurrencyCode BGN
-
BRL
public static final IsoCurrencyCode BRL
-
CAD
public static final IsoCurrencyCode CAD
-
CHF
public static final IsoCurrencyCode CHF
-
CNY
public static final IsoCurrencyCode CNY
-
CZK
public static final IsoCurrencyCode CZK
-
DKK
public static final IsoCurrencyCode DKK
-
EUR
public static final IsoCurrencyCode EUR
-
GBP
public static final IsoCurrencyCode GBP
-
HKD
public static final IsoCurrencyCode HKD
-
HRK
public static final IsoCurrencyCode HRK
-
HUF
public static final IsoCurrencyCode HUF
-
IDR
public static final IsoCurrencyCode IDR
-
ILS
public static final IsoCurrencyCode ILS
-
INR
public static final IsoCurrencyCode INR
-
JPY
public static final IsoCurrencyCode JPY
-
KRW
public static final IsoCurrencyCode KRW
-
MXN
public static final IsoCurrencyCode MXN
-
MYR
public static final IsoCurrencyCode MYR
-
NOK
public static final IsoCurrencyCode NOK
-
NZD
public static final IsoCurrencyCode NZD
-
PHP
public static final IsoCurrencyCode PHP
-
PLN
public static final IsoCurrencyCode PLN
-
RON
public static final IsoCurrencyCode RON
-
RUB
public static final IsoCurrencyCode RUB
-
SEK
public static final IsoCurrencyCode SEK
-
SGD
public static final IsoCurrencyCode SGD
-
THB
public static final IsoCurrencyCode THB
-
TRY
public static final IsoCurrencyCode TRY
-
USD
public static final IsoCurrencyCode USD
-
ZAR
public static final IsoCurrencyCode ZAR
-
-
Method Detail
-
values
public static IsoCurrencyCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IsoCurrencyCode c : IsoCurrencyCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IsoCurrencyCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
fromCountry
public static IsoCurrencyCode fromCountry(IsoCountryCode country)
ReturnsIsoCurrencyCodefor given country.- Parameters:
country- country- Returns:
IsoCurrencyCodeinstance
-
fromLocaleCountry
public static IsoCurrencyCode fromLocaleCountry(java.util.Locale locale)
ReturnsIsoCurrencyCodefor given locale.- Parameters:
locale- locale- Returns:
IsoCurrencyCodeinstance
-
fromString
public static IsoCurrencyCode fromString(java.lang.String currencyCode)
ReturnsIsoCurrencyCodefor given ISO 4217 identifier (case-insensitive).- Parameters:
currencyCode- ISO 4217 currency code- Returns:
IsoCurrencyCodeinstance
-
createNumberFormat
public java.text.NumberFormat createNumberFormat()
-
getAbbreviation
public java.lang.String getAbbreviation()
-
getCountry
public IsoCountryCode getCountry()
-
getFullName
public java.lang.String getFullName()
-
getHtml
public java.lang.String getHtml()
-
getResourceBundleKey
public java.lang.String getResourceBundleKey()
-
getSymbol
public java.lang.String getSymbol()
-
-