public static enum Note.Tone extends Enum<Note.Tone>
修飾子とタイプ | フィールドと説明 |
---|---|
static byte |
TONES_COUNT
The number of tones including sharped tones.
|
修飾子とタイプ | メソッドと説明 |
---|---|
static Note.Tone |
getById(byte id)
非推奨です。
Magic value
|
byte |
getId()
非推奨です。
Magic value
|
byte |
getId(boolean sharped)
非推奨です。
Magic value
|
boolean |
isSharpable()
Returns if this tone could be sharped.
|
boolean |
isSharped(byte id)
非推奨です。
Magic value
|
static Note.Tone |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static Note.Tone[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
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
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数が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 public static Note.Tone getById(byte id)
id
- the id of the tone.Copyright © 2016. All rights reserved.