Enum Class JanitzaMeter.JanitzaModel

java.lang.Object
java.lang.Enum<JanitzaMeter.JanitzaModel>
io.openems.edge.app.meter.JanitzaMeter.JanitzaModel
All Implemented Interfaces:
TranslatableEnum, Nameable, Serializable, Comparable<JanitzaMeter.JanitzaModel>, Constable
Enclosing class:
JanitzaMeter

public static enum JanitzaMeter.JanitzaModel extends Enum<JanitzaMeter.JanitzaModel> implements TranslatableEnum
  • Enum Constant Details

  • Method Details

    • values

      public static JanitzaMeter.JanitzaModel[] 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 JanitzaMeter.JanitzaModel 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
    • getTranslation

      public String getTranslation(Language language)
      Description copied from interface: TranslatableEnum
      Gets the translation of the current value.
      Specified by:
      getTranslation in interface TranslatableEnum
      Parameters:
      language - the language of the value
      Returns:
      the translated value
    • getValue

      public String getValue()
      Description copied from interface: TranslatableEnum
      Gets the value which is being selected in the OptionsFactory. If you choose to override this be careful when calling a method which gets the enum value of a string name and not this value.
      Specified by:
      getValue in interface TranslatableEnum
      Returns:
      the value of this TranslatableEnum