Package org.correomqtt.business.model
Enum CorreoMqttVersion
- java.lang.Object
-
- java.lang.Enum<CorreoMqttVersion>
-
- org.correomqtt.business.model.CorreoMqttVersion
-
- All Implemented Interfaces:
Serializable,Comparable<CorreoMqttVersion>,GenericCellModel
public enum CorreoMqttVersion extends Enum<CorreoMqttVersion> implements GenericCellModel
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MQTT_3_1_1MQTT_5_0
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CorreoMqttVersionfromJsonValue(String value)StringgetDescription()StringgetLabelTranslationKey()com.hivemq.client.mqtt.MqttVersiongetVersion()StringtoJsonValue()StringtoString()static CorreoMqttVersionvalueOf(String name)Returns the enum constant of this type with the specified name.static CorreoMqttVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MQTT_3_1_1
public static final CorreoMqttVersion MQTT_3_1_1
-
MQTT_5_0
public static final CorreoMqttVersion MQTT_5_0
-
-
Method Detail
-
values
public static CorreoMqttVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CorreoMqttVersion c : CorreoMqttVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CorreoMqttVersion valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getVersion
public com.hivemq.client.mqtt.MqttVersion getVersion()
-
getDescription
public String getDescription()
-
fromJsonValue
public static CorreoMqttVersion fromJsonValue(String value)
-
toJsonValue
public String toJsonValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<CorreoMqttVersion>
-
getLabelTranslationKey
public String getLabelTranslationKey()
- Specified by:
getLabelTranslationKeyin interfaceGenericCellModel
-
-