Enum Class ConversionType
java.lang.Object
java.lang.Enum<ConversionType>
org.sentrysoftware.metricshub.engine.connector.model.common.ConversionType
- All Implemented Interfaces:
Serializable,Comparable<ConversionType>,Constable
Enumeration representing different conversion types used in the connector.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConverts an array to a simple status.Converts a hexadecimal string to its decimal equivalent. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConversionTypeGetConversionTypeby name, the name defined in the connector code.static ConversionTypeReturns the enum constant of this class with the specified name.static ConversionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
Converts an array to a simple status. This conversion type is also recognized with alternative names: "array_2_simple_status".
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getByName
GetConversionTypeby name, the name defined in the connector code.- Parameters:
name- The name in the connector defining aConversionType. E.g. hex2dec- Returns:
ConversionTypeinstance- Throws:
IllegalArgumentException- if the provided name does not match any defined conversion type.
-