public class Card
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Card |
UNKNOWN_CARD |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Face |
getFace() |
Suit |
getSuit() |
int |
hashCode()
Taken from the example on p.39 of Effective Java by Joshua Bloch.
|
boolean |
isFaceUp()
Determines whether it's known what suit and face this card is.
|
java.lang.String |
toString() |
public static final Card UNKNOWN_CARD
public Suit getSuit()
public Face getFace()
public boolean isFaceUp()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object