public enum MqttVersion extends java.lang.Enum<MqttVersion>
Enum Constant and Description |
---|
MQTT_3_1 |
MQTT_3_1_1 |
Modifier and Type | Field and Description |
---|---|
private byte |
level |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
static MqttVersion |
fromProtocolNameAndLevel(java.lang.String protocolName,
byte protocolLevel) |
byte |
protocolLevel() |
java.lang.String |
protocolName() |
byte[] |
protocolNameBytes() |
static MqttVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MqttVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MqttVersion MQTT_3_1
public static final MqttVersion MQTT_3_1_1
public static MqttVersion[] values()
for (MqttVersion c : MqttVersion.values()) System.out.println(c);
public static MqttVersion valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String protocolName()
public byte[] protocolNameBytes()
public byte protocolLevel()
public static MqttVersion fromProtocolNameAndLevel(java.lang.String protocolName, byte protocolLevel)