public enum GpioDirection extends java.lang.Enum<GpioDirection> implements net.solarnetwork.domain.CodedValue
| Enum Constant and Description |
|---|
Input
Input (read) direction.
|
Output
Output (write) direction.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static GpioDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GpioDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GpioDirection Input
public static final GpioDirection Output
public static GpioDirection[] values()
for (GpioDirection c : GpioDirection.values()) System.out.println(c);
public static GpioDirection 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 int getCode()
getCode in interface net.solarnetwork.domain.CodedValue