Enum Class CurrencyConfig

java.lang.Object
java.lang.Enum<CurrencyConfig>
io.openems.edge.common.currency.CurrencyConfig
All Implemented Interfaces:
Serializable, Comparable<CurrencyConfig>, Constable

public enum CurrencyConfig extends Enum<CurrencyConfig>
The Meta.ChannelId.CURRENCY mandates the selection of the 'currency' configuration property of this specific type. Subsequently, this selected property is transformed into the corresponding Currency type before being written through Meta._setCurrency(Currency).
  • Enum Constant Details

  • Method Details

    • values

      public static CurrencyConfig[] 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 CurrencyConfig 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
    • toCurrency

      public Currency toCurrency()
      Converts the CurrencyConfig to the Currency.
      Returns:
      The Currency.