public enum MusicalKey extends Enum<MusicalKey>
Enum Constant and Description |
---|
FLAT |
MINOR |
NOTE_A |
NOTE_B |
NOTE_C |
NOTE_D |
NOTE_E |
NOTE_F |
NOTE_G |
OFF_KEY |
SHARP |
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
static boolean |
isValid(String musicalKey) |
static MusicalKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MusicalKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MusicalKey NOTE_A
public static final MusicalKey NOTE_B
public static final MusicalKey NOTE_C
public static final MusicalKey NOTE_D
public static final MusicalKey NOTE_E
public static final MusicalKey NOTE_F
public static final MusicalKey NOTE_G
public static final MusicalKey FLAT
public static final MusicalKey SHARP
public static final MusicalKey MINOR
public static final MusicalKey OFF_KEY
public static MusicalKey[] values()
for (MusicalKey c : MusicalKey.values()) System.out.println(c);
public static MusicalKey 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 String getValue()
public static boolean isValid(String musicalKey)
Copyright © 2005–2020 jthink.net. All rights reserved.