Package be.gaudry.model.brolmeter
Enum Class EMeterType
- All Implemented Interfaces:
Serializable
,Comparable<EMeterType>
,Constable
- Since:
- 1.0 Mar 15, 2009
- Author:
- Steph GAUDRY
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionElectricity, day and night periodsElectricity, day periodElectricity, night periodGas meterQuantity of liters consumed by a vehicleIndex of driven kilometers for a vehicleWater meter -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EMeterType
fromInt(int key)
int
getValue()
toString()
Returns a localized representation of an EMeterType, or thename
of this enum constant (as contained in the declaration) if an error occurs when trying to use the language resource file.static EMeterType
Returns the enum constant of this class with the specified name.static EMeterType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
-
ELEC_NIGHT
Electricity, night period -
ELEC_DAY
Electricity, day period -
GAS
Gas meter -
WATER
Water meter -
ELEC
Electricity, day and night periods -
VEH_CONSUMPTION
Quantity of liters consumed by a vehicle -
VEH_MILEAGE
Index of driven kilometers for a vehicle
-
-
Field Details
-
LANGUAGE_PATH
Key to access to the language resource bundle- See Also:
- Constant Field Values
-
-
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
-
getValue
public int getValue()- Returns:
- the value
-
toString
Returns a localized representation of an EMeterType, or thename
of this enum constant (as contained in the declaration) if an error occurs when trying to use the language resource file.- Overrides:
toString
in classEnum<EMeterType>
- See Also:
LanguageHelper
-
fromInt
-