|
![]() |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.autonomy.utilities.LeagueEntry
This class represents the unit entry for the League object It contains one named String and its score.
| Constructor Summary | |
LeagueEntry(com.autonomy.utilities.League league,
java.lang.String sName,
int nScore)
Constructor. |
|
| Method Summary | |
int |
compareTo(com.autonomy.utilities.LeagueEntry entry)
Comparator. |
int |
compareTo(com.autonomy.utilities.LeagueEntry entry,
java.lang.String sSpareKeyName)
More complex comparator, requires a parent League object. |
java.lang.String |
getName()
returns this entries name |
int |
getScore()
returns this entries current score |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LeagueEntry(com.autonomy.utilities.League league,
java.lang.String sName,
int nScore)
league - League for which this is a membersName - name of league entrynScore - initial score of entry| Method Detail |
public java.lang.String getName()
public int getScore()
public int compareTo(com.autonomy.utilities.LeagueEntry entry)
public int compareTo(com.autonomy.utilities.LeagueEntry entry,
java.lang.String sSpareKeyName)
|
![]() |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||