Package br.com.setis.interfaceautomacao
Enum Class Cartoes
- All Implemented Interfaces:
Serializable
,Comparable<Cartoes>
,Constable
Tipos de cartões suportados.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCartão de Crédito.Cartão de Débito.Cartão ainda não definido ou desconhecido.FrotaPrivate labelCartão Voucher. -
Method Summary
Modifier and TypeMethodDescriptionstatic Cartoes
obtemCartao
(int cartao) int
static Cartoes
Returns the enum constant of this class with the specified name.static Cartoes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CARTAO_DESCONHECIDO
Cartão ainda não definido ou desconhecido. -
CARTAO_CREDITO
Cartão de Crédito. -
CARTAO_DEBITO
Cartão de Débito. -
CARTAO_VOUCHER
Cartão Voucher. -
CARTAO_PRIVATELABEL
Private label -
CARTAO_FROTA
Frota
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
obtemTipoCartao
public int obtemTipoCartao() -
obtemCartao
-