org.powertac.common.enumerations
Enum CustomerType
java.lang.Object
java.lang.Enum<CustomerType>
org.powertac.common.enumerations.CustomerType
- All Implemented Interfaces:
- Serializable, Comparable<CustomerType>
public enum CustomerType
- extends Enum<CustomerType>
Types of customer. See PowerType to see the types of power a Customer can
produce or consume.
- Author:
- cblock
|
Method Summary |
static CustomerType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CustomerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
CustomerHousehold
public static final CustomerType CustomerHousehold
CustomerOffice
public static final CustomerType CustomerOffice
CustomerFactory
public static final CustomerType CustomerFactory
CustomerElectricVehicle
public static final CustomerType CustomerElectricVehicle
CustomerOther
public static final CustomerType CustomerOther
CustomerProducer
public static final CustomerType CustomerProducer
values
public static CustomerType[] 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 (CustomerType c : CustomerType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CustomerType 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 name
NullPointerException - if the argument is null
Copyright © 2011. All Rights Reserved.