public enum CoalType extends Enum<CoalType>
修飾子とタイプ | メソッドと説明 |
---|---|
static CoalType |
getByData(byte data)
非推奨です。
Magic value
|
byte |
getData()
非推奨です。
Magic value
|
static CoalType |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static CoalType[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static CoalType[] values()
for(CoalType c: CoalType.values()) System.out.println(c);
public static CoalType valueOf(String name)
name
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合@Deprecated public byte getData()
@Deprecated public static CoalType getByData(byte data)
data
- Data value to fetchCoalType
representing the given value, or null if
it doesn't existCopyright © 2016. All rights reserved.