|
-footer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgarrettsmith.playingcards.Card.Color
public static class Card.Color
Represents the card's color: red, black, or none. Colors are immutable.
| Field Summary | |
|---|---|
static Card.Color |
BLACK
Indicates a black card. |
static Card.Color |
NONE
Indicates a card with no color. |
static Card.Color |
RED
Indicates a red card. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Returns whether object is a Color equal to this one. |
int |
hashCode()
Returns a hash value for this card. |
java.lang.String |
toString()
Returns a string representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Card.Color RED
public static final Card.Color BLACK
public static final Card.Color NONE
| 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
|
-footer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||