Enum Class EMeterType

java.lang.Object
java.lang.Enum<EMeterType>
be.gaudry.model.brolmeter.EMeterType
All Implemented Interfaces:
Serializable, Comparable<EMeterType>, Constable

public enum EMeterType extends Enum<EMeterType>
Since:
1.0 Mar 15, 2009
Author:
Steph GAUDRY
  • Enum Constant Details

    • DEFAULT

      public static final EMeterType DEFAULT
    • ELEC_NIGHT

      public static final EMeterType ELEC_NIGHT
      Electricity, night period
    • ELEC_DAY

      public static final EMeterType ELEC_DAY
      Electricity, day period
    • GAS

      public static final EMeterType GAS
      Gas meter
    • WATER

      public static final EMeterType WATER
      Water meter
    • ELEC

      public static final EMeterType ELEC
      Electricity, day and night periods
    • VEH_CONSUMPTION

      public static final EMeterType VEH_CONSUMPTION
      Quantity of liters consumed by a vehicle
    • VEH_MILEAGE

      public static final EMeterType VEH_MILEAGE
      Index of driven kilometers for a vehicle
  • Field Details

    • LANGUAGE_PATH

      public static final String LANGUAGE_PATH
      Key to access to the language resource bundle
      See Also:
      Constant Field Values
  • Method Details

    • values

      public static EMeterType[] 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

      public static EMeterType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns:
      the value
    • toString

      public String toString()
      Returns a localized representation of an EMeterType, or the name of this enum constant (as contained in the declaration) if an error occurs when trying to use the language resource file.
      Overrides:
      toString in class Enum<EMeterType>
      See Also:
      LanguageHelper
    • fromInt

      public static EMeterType fromInt(int key)