public enum PaymentTypeEnum extends Enum<PaymentTypeEnum>
Java class for PaymentTypeEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="PaymentTypeEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="Cash"/> <enumeration value="Check"/> <enumeration value="CreditCard"/> <enumeration value="Expense"/> <enumeration value="Other"/> </restriction> </simpleType>
Enum Constant and Description |
---|
CASH |
CHECK |
CREDIT_CARD |
EXPENSE |
OTHER |
Modifier and Type | Method and Description |
---|---|
static PaymentTypeEnum |
fromValue(String v) |
String |
value() |
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 CASH
public static final PaymentTypeEnum CHECK
public static final PaymentTypeEnum CREDIT_CARD
public static final PaymentTypeEnum EXPENSE
public static final PaymentTypeEnum OTHER
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 value()
public static PaymentTypeEnum fromValue(String v)
Copyright © 2017. All rights reserved.