Package cz.gopay.api.v3.model.common
Enum Currency
- java.lang.Object
-
- java.lang.Enum<Currency>
-
- cz.gopay.api.v3.model.common.Currency
-
- All Implemented Interfaces:
Serializable,Comparable<Currency>
public enum Currency extends Enum<Currency>
- Author:
- Zbynek Novak | novak.zbynek@gmail.com, Pavel Valenta (pavel.valenta@gopay.cz) - pouze doplnen enum o PLN, HUF, USD, GBP splnuje ISO 4217
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CurrencygetByCode(String code)static CurrencygetByNumericalCode(Integer code)StringgetCode()IntegergetNumericalCode()voidsetNumericalCode(int numericalCode)static CurrencyvalueOf(String name)Returns the enum constant of this type with the specified name.static Currency[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CZK
public static final Currency CZK
-
EUR
public static final Currency EUR
-
PLN
public static final Currency PLN
-
HUF
public static final Currency HUF
-
USD
public static final Currency USD
-
GBP
public static final Currency GBP
-
BGN
public static final Currency BGN
-
HRK
public static final Currency HRK
-
RON
public static final Currency RON
-
-
Field Detail
-
CODE_CZK
public static final String CODE_CZK
-
CODE_EUR
public static final String CODE_EUR
-
CODE_PLN
public static final String CODE_PLN
-
CODE_HUF
public static final String CODE_HUF
-
CODE_USD
public static final String CODE_USD
-
CODE_GBP
public static final String CODE_GBP
-
CODE_BGN
public static final String CODE_BGN
-
CODE_HRK
public static final String CODE_HRK
-
CODE_RON
public static final String CODE_RON
-
-
Method Detail
-
values
public static Currency[] 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 (Currency c : Currency.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Currency valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumericalCode
public Integer getNumericalCode()
-
getCode
public String getCode()
-
setNumericalCode
public void setNumericalCode(int numericalCode)
-
-