|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdata.Score
public class Score
| Field Summary | |
|---|---|
private java.lang.String |
name
|
private int |
score
|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
Score(int score,
java.lang.String name)
This is a Serializable class to save the score. |
|
| Method Summary | |
|---|---|
int |
compareTo(Score score)
This method is a simple override for comparing objects to each other. |
java.lang.String |
getName()
|
int |
getScore()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private int score
private java.lang.String name
| Constructor Detail |
|---|
public Score(int score,
java.lang.String name)
Serializable class to save the score.
score - name - | Method Detail |
|---|
public int getScore()
public java.lang.String getName()
public int compareTo(Score score)
compareTo in interface java.lang.Comparable<Score>score - Another Score object to compare.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||