public class Card extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Card.Rank |
static class |
Card.Suit |
Modifier and Type | Field and Description |
---|---|
private static java.util.List<Card> |
protoDeck |
private Card.Rank |
rank |
private Card.Suit |
suit |
Modifier | Constructor and Description |
---|---|
private |
Card(Card.Rank rank,
Card.Suit suit) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Card> |
newDeck() |
Card.Rank |
rank() |
Card.Suit |
suit() |
java.lang.String |
toString() |