public static enum Relay.Direction extends Enum<Relay.Direction>
Enum Constant and Description |
---|
kBoth
direction: both directions are valid
|
kForward
direction: Only forward is valid
|
kReverse
direction: only reverse is valid
|
Modifier and Type | Field and Description |
---|---|
int |
value
The integer value representing this enumeration
|
Modifier and Type | Method and Description |
---|---|
static Relay.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Relay.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Relay.Direction kBoth
public static final Relay.Direction kForward
public static final Relay.Direction kReverse
public static Relay.Direction[] values()
for (Relay.Direction c : Relay.Direction.values()) System.out.println(c);
public static Relay.Direction 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 © 2015. All rights reserved.