Enum Currency

java.lang.Object
java.lang.Enum<Currency>
cz.gopay.api.v3.model.common.Currency
All Implemented Interfaces:
Serializable, Comparable<Currency>, java.lang.constant.Constable

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
  • Enum Constant Details

  • Field Details

    • 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_RON

      public static final String CODE_RON
  • Method Details

    • values

      public static Currency[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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)
    • getByCode

      public static Currency getByCode(String code)
    • getByNumericalCode

      public static Currency getByNumericalCode(Integer code)