public static enum MqttConnection.ConnectionState extends Enum<MqttConnection.ConnectionState>
Enum Constant and Description |
---|
CONNECTED |
CONNECTING |
DISCONNECTED |
DISCONNECTING |
Modifier and Type | Method and Description |
---|---|
static MqttConnection.ConnectionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MqttConnection.ConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MqttConnection.ConnectionState DISCONNECTED
public static final MqttConnection.ConnectionState CONNECTING
public static final MqttConnection.ConnectionState CONNECTED
public static final MqttConnection.ConnectionState DISCONNECTING
public static MqttConnection.ConnectionState[] values()
for (MqttConnection.ConnectionState c : MqttConnection.ConnectionState.values()) System.out.println(c);
public static MqttConnection.ConnectionState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019. All rights reserved.