public enum BudgetType extends Enum<BudgetType>
| Modifier and Type | Method and Description |
|---|---|
static BudgetType |
fromValue(String value)
Use this in place of valueOf.
|
String |
toString() |
static BudgetType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BudgetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BudgetType USAGE
public static final BudgetType COST
public static BudgetType[] values()
for (BudgetType c : BudgetType.values()) System.out.println(c);
public static BudgetType 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 toString()
toString in class Enum<BudgetType>public static BudgetType fromValue(String value)
value - real valueCopyright © 2016. All rights reserved.