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