public enum PinDirection extends Enum<PinDirection>
Modifier and Type | Method and Description |
---|---|
static EnumSet<PinDirection> |
all() |
static PinDirection |
getDirection(int direction) |
String |
getName() |
int |
getValue() |
String |
toString() |
static PinDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PinDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PinDirection IN
public static final PinDirection OUT
public static PinDirection[] values()
for (PinDirection c : PinDirection.values()) System.out.println(c);
public static PinDirection 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 int getValue()
public String toString()
toString
in class Enum<PinDirection>
public static PinDirection getDirection(int direction)
public static EnumSet<PinDirection> all()
Copyright © 2012–2021 Pi4J. All rights reserved.