Enum 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
    • 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 name
        NullPointerException - if the argument is null
      • getNumericalCode

        public Integer getNumericalCode()
      • getCode

        public String getCode()
      • setNumericalCode

        public void setNumericalCode​(int numericalCode)
      • getByNumericalCode

        public static Currency getByNumericalCode​(Integer code)