public enum ModbusSlaveType extends Enum<ModbusSlaveType>
| Modifier and Type | Method and Description |
|---|---|
String |
getKey(int port)
Returns a unique key for this port and type
|
String |
getKey(String port)
Returns a unique key for this port and type
|
boolean |
is(ModbusSlaveType... types)
Returns true if this type is one of those listed
|
static ModbusSlaveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModbusSlaveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModbusSlaveType TCP
public static final ModbusSlaveType UDP
public static final ModbusSlaveType SERIAL
public static ModbusSlaveType[] values()
for (ModbusSlaveType c : ModbusSlaveType.values()) System.out.println(c);
public static ModbusSlaveType 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 nullpublic boolean is(ModbusSlaveType... types)
types - Array of types to check forpublic String getKey(int port)
port - Port numberCopyright © 2025. All Rights Reserved.