public enum DeviceConnectionType extends Enum<DeviceConnectionType>
GatewayClient
.
This enum is mainly for testing purposes, and may be removed or hidden in future releases.
In practice, modules that are passed into the constructor of the GatewayClient are locally connected, while modules that are connected to a network that the GatewayClient has created are remotely connected.
Enum Constant and Description |
---|
LOCALLY_CONNECTED
Represents a module that the GatewayClient has been constructed with.
|
REMOTELY_CONNECTED
Represents a module that is connected to a network that the GatewayClient has created.
|
Modifier and Type | Method and Description |
---|---|
static DeviceConnectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeviceConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceConnectionType LOCALLY_CONNECTED
public static final DeviceConnectionType REMOTELY_CONNECTED
public static DeviceConnectionType[] values()
for (DeviceConnectionType c : DeviceConnectionType.values()) System.out.println(c);
public static DeviceConnectionType 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.