java.lang.Object
java.lang.Enum<ConversionType>
org.sentrysoftware.metricshub.engine.connector.model.common.ConversionType
All Implemented Interfaces:
Serializable, Comparable<ConversionType>, Constable

public enum ConversionType extends Enum<ConversionType>
Enumeration representing different conversion types used in the connector.
  • Enum Constant Details

    • HEX_2_DEC

      public static final ConversionType HEX_2_DEC
      Converts a hexadecimal string to its decimal equivalent. This conversion type is also recognized with alternative names: "hex_2_dec".
    • ARRAY_2_SIMPLE_STATUS

      public static final ConversionType ARRAY_2_SIMPLE_STATUS
      Converts an array to a simple status. This conversion type is also recognized with alternative names: "array_2_simple_status".
  • Method Details

    • values

      public static ConversionType[] 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 ConversionType 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
    • getByName

      public static ConversionType getByName(@NonNull @NonNull String name)
      Get ConversionType by name, the name defined in the connector code.
      Parameters:
      name - The name in the connector defining a ConversionType. E.g. hex2dec
      Returns:
      ConversionType instance
      Throws:
      IllegalArgumentException - if the provided name does not match any defined conversion type.