public static enum Note.Tone extends Enum<Note.Tone>
Modifier and Type | Field and Description |
---|---|
static byte |
TONES_COUNT
The number of tones including sharped tones.
|
Modifier and Type | Method and Description |
---|---|
static @Nullable Note.Tone |
getById(byte id)
Deprecated.
Magic value
|
byte |
getId()
Deprecated.
Magic value
|
byte |
getId(boolean sharped)
Deprecated.
Magic value
|
boolean |
isSharpable()
Returns if this tone could be sharped.
|
boolean |
isSharped(byte id)
Deprecated.
Magic value
|
static Note.Tone |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Note.Tone[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Note.Tone G
public static final Note.Tone A
public static final Note.Tone B
public static final Note.Tone C
public static final Note.Tone D
public static final Note.Tone E
public static final Note.Tone F
public static final byte TONES_COUNT
public static Note.Tone[] values()
for (Note.Tone c : Note.Tone.values()) System.out.println(c);
public static Note.Tone 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@Deprecated public byte getId()
@Deprecated public byte getId(boolean sharped)
sharped
- Set to true to return the sharped id.public boolean isSharpable()
@Deprecated public boolean isSharped(byte id)
id
- the id of the tone.IllegalArgumentException
- if neither the tone nor the
semitone have the id.@Deprecated @Nullable public static @Nullable Note.Tone getById(byte id)
id
- the id of the tone.Copyright © 2021. All rights reserved.