|
-footer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgarrettsmith.playingcards.Card.Suit
public static class Card.Suit
Represents a card's suit, such as spades or clubs.
| Field Summary | |
|---|---|
static Card.Suit |
CLUB
Represents the clubs. |
static Card.Suit |
DIAMOND
Represents the diamonds. |
static Card.Suit |
HEART
Represents the hearts. |
static Card.Suit |
NONE
Represents no suit. |
static Card.Suit |
SPADE
Represents the spades. |
| Method Summary | |
|---|---|
protected java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object object)
Returns whether object is equal to this suit. |
int |
hashCode()
Returns a hash value for this card. |
java.lang.String |
toString()
Returns a string representation of this value. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Card.Suit CLUB
public static final Card.Suit DIAMOND
public static final Card.Suit NONE
public static final Card.Suit HEART
public static final Card.Suit SPADE
| Method Detail |
|---|
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
-footer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||