public enum PayResultEnum extends Enum<PayResultEnum>
| Enum Constant and Description |
|---|
FAILURE |
PROCESSING |
REFUND |
SUCCESS |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
String |
getMsg() |
static String |
getMsgByCode(String code)
根据编码获取信息
|
static boolean |
isPayResult(String code)
判断支付结果代码合法性
|
static PayResultEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PayResultEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PayResultEnum SUCCESS
public static final PayResultEnum PROCESSING
public static final PayResultEnum FAILURE
public static final PayResultEnum REFUND
public static PayResultEnum[] values()
for (PayResultEnum c : PayResultEnum.values()) System.out.println(c);
public static PayResultEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static boolean isPayResult(String code)
code - public String getCode()
public String getMsg()
Copyright © 2018. All rights reserved.