|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objecttrump.Card
public class Card
トランプのカードを表すクラス。
フィールドの概要 | |
---|---|
static int |
CARD_NUM
値の数 |
protected int |
number
カードの示す数 |
protected int |
suit
カードの示すスート |
static int |
SUIT_CLUB
クラブを表す定数 |
static int |
SUIT_DIAMOND
ダイヤを表す定数 |
static int |
SUIT_HEART
ハートを表す定数 |
static int |
SUIT_NUM
スートの数 |
static int |
SUIT_SPADE
スペードを表す定数 |
コンストラクタの概要 | |
---|---|
Card(int suit,
int number)
コンストラクタ。 |
メソッドの概要 | |
---|---|
int |
getNumber()
数を見る。 |
int |
getSuit()
スートを見る。 |
String |
toString()
カードを文字列で表現する。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
public static final int SUIT_SPADE
public static final int SUIT_DIAMOND
public static final int SUIT_CLUB
public static final int SUIT_HEART
public static final int SUIT_NUM
public static final int CARD_NUM
protected int suit
protected int number
コンストラクタの詳細 |
---|
public Card(int suit, int number)
suit
- スートnumber
- 数メソッドの詳細 |
---|
public int getNumber()
public int getSuit()
public String toString()
Object
内の toString
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |