public enum PTransTypeEnum extends Enum<PTransTypeEnum>
| Enum Constant and Description |
|---|
EXCHANGE_PAY |
ORDER_PAY |
ORDER_REFUND |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCode() |
static PTransTypeEnum |
getEnumByCode(Integer code) |
String |
getName() |
void |
setCode(Integer code) |
void |
setName(String name) |
static PTransTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PTransTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PTransTypeEnum ORDER_PAY
public static final PTransTypeEnum ORDER_REFUND
public static final PTransTypeEnum EXCHANGE_PAY
public static PTransTypeEnum[] values()
for (PTransTypeEnum c : PTransTypeEnum.values()) System.out.println(c);
public static PTransTypeEnum 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 Integer getCode()
public void setCode(Integer code)
public String getName()
public void setName(String name)
public static PTransTypeEnum getEnumByCode(Integer code)
Copyright © 2018. All rights reserved.