public enum Accidental extends Enum<Accidental>
Modifier and Type | Method and Description |
---|---|
static Accidental |
getValueOf(String s)
Returns the Accidental that is equivalent to the given string,
such as Accidental.SHARP for "SHARP", or null if the string does not
match any Accidental value.
|
static Accidental |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Accidental[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Accidental SHARP
public static final Accidental NATURAL
public static final Accidental FLAT
public static Accidental[] values()
for (Accidental c : Accidental.values()) System.out.println(c);
public static Accidental 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 Accidental getValueOf(String s)