Enum Class EnforcedChargingState

java.lang.Object
java.lang.Enum<EnforcedChargingState>
dev.digiried.wattpilot.dto.EnforcedChargingState
All Implemented Interfaces:
Serializable, Comparable<EnforcedChargingState>, Constable

public enum EnforcedChargingState extends Enum<EnforcedChargingState>
Enum for the enforced charging state configuration.
Author:
Florian Hotze - Initial contribution
  • Enum Constant Details

  • Method Details

    • values

      public static EnforcedChargingState[] 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 EnforcedChargingState 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
    • toValue

      public int toValue()
      Get the API value of the enforced charging state.
      Returns:
      the API value
    • fromValue

      public static EnforcedChargingState fromValue(int value)
      Get the enforced charging state from the API value.
      Parameters:
      value - the API value
      Returns:
      the enforced charging state