Enum EvCustomer.RiskAttitude
- java.lang.Object
-
- java.lang.Enum<EvCustomer.RiskAttitude>
-
- org.powertac.evcustomer.customers.EvCustomer.RiskAttitude
-
- All Implemented Interfaces:
Serializable
,Comparable<EvCustomer.RiskAttitude>
- Enclosing class:
- EvCustomer
public static enum EvCustomer.RiskAttitude extends Enum<EvCustomer.RiskAttitude>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EvCustomer.RiskAttitude
valueOf(String name)
Returns the enum constant of this type with the specified name.static EvCustomer.RiskAttitude[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
averse
public static final EvCustomer.RiskAttitude averse
-
neutral
public static final EvCustomer.RiskAttitude neutral
-
eager
public static final EvCustomer.RiskAttitude eager
-
-
Method Detail
-
values
public static EvCustomer.RiskAttitude[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EvCustomer.RiskAttitude c : EvCustomer.RiskAttitude.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EvCustomer.RiskAttitude valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-