Enum Class EngineType

java.lang.Object
java.lang.Enum<EngineType>
com.highmobility.autoapi.value.EngineType
All Implemented Interfaces:
ByteEnum, Serializable, Comparable<EngineType>, Constable

public enum EngineType extends Enum<EngineType> implements ByteEnum
  • Enum Constant Details

    • UNKNOWN

      public static final EngineType UNKNOWN
    • ALL_ELECTRIC

      public static final EngineType ALL_ELECTRIC
    • COMBUSTION_ENGINE

      public static final EngineType COMBUSTION_ENGINE
    • PHEV

      public static final EngineType PHEV
    • HYDROGEN

      public static final EngineType HYDROGEN
    • HYDROGEN_HYBRID

      public static final EngineType HYDROGEN_HYBRID
    • PETROL

      public static final EngineType PETROL
    • ELECTRIC

      public static final EngineType ELECTRIC
    • GAS

      public static final EngineType GAS
    • DIESEL

      public static final EngineType DIESEL
    • GASOLINE

      public static final EngineType GASOLINE
    • CNG

      public static final EngineType CNG
    • LPG

      public static final EngineType LPG
    • HYBRID

      public static final EngineType HYBRID
  • Method Details

    • values

      public static EngineType[] 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 EngineType 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
    • fromByte

      public static EngineType fromByte(byte byteValue) throws CommandParseException
      Throws:
      CommandParseException
    • getByte

      public byte getByte()
      Specified by:
      getByte in interface ByteEnum