public static enum Rabbit.Type extends Enum<Rabbit.Type>
列挙型定数と説明 |
---|
BLACK
Black rabbit.
|
BLACK_AND_WHITE
Black with white patches, or white with black patches?
|
BROWN
Chocolate colored rabbit.
|
GOLD
Golden bunny.
|
SALT_AND_PEPPER
Salt and pepper colored, whatever that means.
|
THE_KILLER_BUNNY
Rabbit with pure white fur, blood red horizontal eyes, and is hostile to players.
|
WHITE
Pure white rabbit.
|
修飾子とタイプ | メソッドと説明 |
---|---|
static Rabbit.Type |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static Rabbit.Type[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final Rabbit.Type BROWN
public static final Rabbit.Type WHITE
public static final Rabbit.Type BLACK
public static final Rabbit.Type BLACK_AND_WHITE
public static final Rabbit.Type GOLD
public static final Rabbit.Type SALT_AND_PEPPER
public static final Rabbit.Type THE_KILLER_BUNNY
public static Rabbit.Type[] values()
for(Rabbit.Type c: Rabbit.Type.values()) System.out.println(c);
public static Rabbit.Type valueOf(String name)
name
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合Copyright © 2016. All rights reserved.