public enum PaymentTypeEnum extends Enum<PaymentTypeEnum>
Enum Constant and Description |
---|
BOLETO |
CREDIT_CARD |
DEBIT_CARD |
ELECTRONIC_TRANSFER |
Modifier and Type | Method and Description |
---|---|
static PaymentTypeEnum |
fromValue(String value) |
static List<PaymentTypeEnum> |
getAll() |
String |
getValue() |
static PaymentTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaymentTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaymentTypeEnum CREDIT_CARD
public static final PaymentTypeEnum DEBIT_CARD
public static final PaymentTypeEnum ELECTRONIC_TRANSFER
public static final PaymentTypeEnum BOLETO
public static PaymentTypeEnum[] values()
for (PaymentTypeEnum c : PaymentTypeEnum.values()) System.out.println(c);
public static PaymentTypeEnum 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 String getValue()
public static PaymentTypeEnum fromValue(String value)
public static List<PaymentTypeEnum> getAll()
Copyright © 2018. All rights reserved.