|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectceleboss.data.LeagueMember
This is an immutable class that represents a member of a mini league.
| Constructor Summary | |
LeagueMember(java.lang.String newName,
int id,
int posn,
int lastPosn,
int newWorth,
float newGain,
int newMills)
Create a new league member. |
|
| Method Summary | |
int |
compareTo(java.lang.Object arg0)
Compare this object with another. |
boolean |
equals(java.lang.Object o)
Is this object equal to this league member based on name. |
java.lang.Float |
getGain()
Return the percentage gain |
java.util.List |
getHistory()
Get the history for this league member. |
java.lang.Integer |
getLastPosition()
Get the last position for this member |
java.lang.Integer |
getMillions()
Get the current number of millions this members has |
java.lang.String |
getName()
Get the name of the member |
java.lang.Integer |
getPosition()
Current position in the league |
int |
getUserId()
|
java.lang.Integer |
getWorth()
Get the current worth |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LeagueMember(java.lang.String newName,
int id,
int posn,
int lastPosn,
int newWorth,
float newGain,
int newMills)
newName - Nmae of the league member.id - User account id.posn - Current positionlastPosn - Last positionnewWorth - Current worthnewGain - Percentage gain over last 24 hoursnewMills - Millions cached by member| Method Detail |
public int compareTo(java.lang.Object arg0)
compareTo in interface java.lang.Comparablearg0 - Object to compare with
Comparable.compareTo(java.lang.Object)public boolean equals(java.lang.Object o)
o - Object to compare against
Object.equals(java.lang.Object)public java.lang.Float getGain()
public java.util.List getHistory()
public java.lang.Integer getLastPosition()
public java.lang.Integer getMillions()
public java.lang.String getName()
public java.lang.Integer getPosition()
public int getUserId()
public java.lang.Integer getWorth()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||