|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.palmmedia.yahtzee.data.Result
public class Result
Represents a game result / highscore.
Field Summary | |
---|---|
private String |
name
The name of the player. |
private int |
score
The score of the player. |
Constructor Summary | |
---|---|
Result(String name,
int score)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(Result another)
|
String |
getName()
Gets the name of the player. |
int |
getScore()
Gets the score of the player. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String name
private int score
Constructor Detail |
---|
public Result(String name, int score)
name
- The name.score
- The score.Method Detail |
---|
public String getName()
public int getScore()
public int compareTo(Result another)
compareTo
in interface Comparable<Result>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |