|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.ObjectCard
トランプのカードを表すクラス。
フィールドの概要 | |
static int |
JOKER
ジョーカーを表す定数 |
private int |
number_
カードの示す数 |
private int |
suit_
カードの示すスート |
static int |
SUIT_CLUB
クラブを表す定数 |
static int |
SUIT_DIAMOND
ダイヤを表す定数 |
static int |
SUIT_HEART
ハートを表す定数 |
static int |
SUIT_SPADE
スペードを表す定数 |
コンストラクタの概要 | |
Card(int suit,
int number)
コンストラクタ。 |
メソッドの概要 | |
int |
getNumber()
数字を見る。 |
String |
toString()
カードを文字列で表現する。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public static final int JOKER
public static final int SUIT_SPADE
public static final int SUIT_DIAMOND
public static final int SUIT_CLUB
public static final int SUIT_HEART
private int suit_
private int number_
コンストラクタの詳細 |
public Card(int suit, int number)
suit
- スートnumber
- 数 (0の場合はジョーカーとして扱う)メソッドの詳細 |
public int getNumber()
public String toString()
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |