|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjagafa.object.Card
public class Card
Klasse Card: Enthält eine Karte mit Farbe und Kartenwert
| Constructor Summary | |
|---|---|
Card(int color,
int value)
Erstellt ein neues Kartenobjekt |
|
| Method Summary | |
|---|---|
Card |
copy()
Get a exact copy of the card |
boolean |
equals(Card o)
|
int |
getColor()
Get the color of the card |
int |
getValue()
Get the value of the card |
int |
hashCode()
|
void |
setColor(int color)
Setzt die Farbe der Karte |
void |
setValue(int value)
Setzt den Wert der Karte |
java.lang.String |
toString()
Liefert einen String mit Farbe und Wert der Karte |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Card(int color,
int value)
color - The colorvalue - The value| Method Detail |
|---|
public void setColor(int color)
color - The new valuepublic boolean equals(Card o)
public void setValue(int value)
value - The new valuepublic int getValue()
public int getColor()
public Card copy()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||