程序包 com.walker.pay

Enum Class ServiceProvider

java.lang.Object
java.lang.Enum<ServiceProvider>
com.walker.pay.ServiceProvider
所有已实现的接口:
Serializable, Comparable<ServiceProvider>, Constable

public enum ServiceProvider extends Enum<ServiceProvider>
支付提供商定义。

当提供商为银行"Bank"类型时,会存在多个具体银行名称的提供商,这是特殊情况,需要业务加载银行列表。

作者:
时克英
  • 枚举常量详细资料

  • 字段详细资料

  • 方法详细资料

    • values

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

      public static ServiceProvider 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getIndex

      public String getIndex()
    • getName

      public String getName()
    • getType

      public static final ServiceProvider getType(String index)