Enum Class EntityBankEnum

java.lang.Object
java.lang.Enum<EntityBankEnum>
es.kukenan.smartfi.common.service.jwt.enums.EntityBankEnum
All Implemented Interfaces:
Serializable, Comparable<EntityBankEnum>, Constable

public enum EntityBankEnum extends Enum<EntityBankEnum>
ENum for define entities bank.
  • Enum Constant Details

  • Field Details

    • key

      private String key
      Key for bank entity.
    • value

      private String value
      Value for bank entity.
    • bankCode

      private String bankCode
      Bank code of bank entity.
    • bic

      private String bic
      Bank BIC / SWIFT.
  • Constructor Details

    • EntityBankEnum

      private EntityBankEnum(String key, String value, String bankCode, String bic)
      Entity Bank Enum constructor.
      Parameters:
      key - type key for bank value.
      value - value code value.
      bankCode - bank code value.
      bic - bic value
  • Method Details

    • values

      public static EntityBankEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EntityBankEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getKey

      public String getKey()
      Get the key value.
      Returns:
      key.
    • getValue

      public String getValue()
      Get the value code.
      Returns:
      registrationCode
    • getBankCode

      public String getBankCode()
      Get the bank code.
      Returns:
      bankCode.
    • getBic

      public String getBic()
      Get the bic .
      Returns:
      bic.
    • findByBankCode

      public static EntityBankEnum findByBankCode(String bankCode)
      Get the enum by its bank code.
      Parameters:
      bankCode - bank code value.
      Returns:
      EntityBank Enum.