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