Enum Constant and Description |
---|
MANUAL |
PURCHASE |
PURCHASE_WITH_CASHBACK |
REFUND |
Modifier and Type | Method and Description |
---|---|
static TransType |
fromID(byte id)
Get an
TransType from a given id |
static TransType |
fromName(java.lang.String name)
Get an
TransType from a given name |
java.lang.String |
getName()
Gets the string name of the
TransType |
static TransType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransType PURCHASE
public static final TransType REFUND
public static final TransType PURCHASE_WITH_CASHBACK
public static final TransType MANUAL
public static TransType[] values()
for (TransType c : TransType.values()) System.out.println(c);
public static TransType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
TransType
TransType
Copyright © 2019 Yello. All rights reserved.