public enum ToggleType extends Enum<ToggleType>
Enum Constant and Description |
---|
dontCare
Don't care
|
toggle0
Generate the toggle code with toggle = 0.
|
toggle1
Generate the toggle code with toggle = 1.
|
Modifier and Type | Method and Description |
---|---|
static ToggleType |
flip(ToggleType t) |
static ToggleType |
parse(String t) |
static int |
toInt(ToggleType t) |
static String |
toString(ToggleType toggle) |
static ToggleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ToggleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ToggleType toggle0
public static final ToggleType toggle1
public static final ToggleType dontCare
public static ToggleType[] values()
for (ToggleType c : ToggleType.values()) System.out.println(c);
public static ToggleType 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 static ToggleType flip(ToggleType t)
public static int toInt(ToggleType t)
public static ToggleType parse(String t)
public static String toString(ToggleType toggle)
Copyright © 2016. All rights reserved.