|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Suit
Specification of the suit values for a standard deck of cards.
Field Summary | |
static Suit |
CLUBS
The suit clubs. |
static Suit |
DIAMONDS
The suit diamonds. |
static Suit |
HEARTS
The suit hearts. |
static Suit |
SPADES
The suit spades. |
static java.util.List |
VALUES
List of all suit values. |
Method Summary | |
int |
compareTo(java.lang.Object otherSuitObject)
Compares the suits. |
java.lang.String |
getName()
Returns a description of this suit. |
java.lang.String |
getSymbol()
The symbol associated with this suit. |
java.lang.String |
toString()
Returns a description of this suit. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Suit CLUBS
public static final Suit DIAMONDS
public static final Suit HEARTS
public static final Suit SPADES
public static final java.util.List VALUES
Method Detail |
public java.lang.String getName()
public java.lang.String getSymbol()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object otherSuitObject)
compareTo
in interface java.lang.Comparable
otherSuitObject
- the other suit.
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |