public enum PibrellaLed extends Enum<PibrellaLed>
Modifier and Type | Method and Description |
---|---|
int |
getIndex() |
static PibrellaLed |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PibrellaLed[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PibrellaLed RED
public static final PibrellaLed YELLOW
public static final PibrellaLed GREEN
public static PibrellaLed[] values()
for (PibrellaLed c : PibrellaLed.values()) System.out.println(c);
public static PibrellaLed 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 getIndex()
Copyright © 2012–2016 Pi4J. All rights reserved.