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