public enum RegisterType extends Enum<RegisterType>
| Enum Constant and Description |
|---|
COILS |
DISCRETE_INPUTS |
HOLDING_REGISTERS |
INPUT_REGISTERS |
| Modifier and Type | Method and Description |
|---|---|
static RegisterType |
getEnumfromString(String enumAsString) |
static RegisterType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RegisterType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RegisterType COILS
public static final RegisterType DISCRETE_INPUTS
public static final RegisterType INPUT_REGISTERS
public static final RegisterType HOLDING_REGISTERS
public static RegisterType[] values()
for (RegisterType c : RegisterType.values()) System.out.println(c);
public static RegisterType 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 static RegisterType getEnumfromString(String enumAsString)
Copyright © 2018. All rights reserved.