public final class Card extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Rank |
rank |
private Suit |
suit |
static java.util.List<Card> |
VALUES |
Modifier | Constructor and Description |
---|---|
private |
Card(Rank rank,
Suit suit) |
Modifier and Type | Method and Description |
---|---|
int |
compareRank(Card c) |
int |
compareSuit(Card c) |
Rank |
getRank() |
int |
getRankValue() |
Suit |
getSuit() |
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public int compareRank(Card c)
public int compareSuit(Card c)
public int getRankValue()