|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectceleboss.data.MiniLeague
This class represents a single mini league in the Celebdaq. It consists of a number of league members.
| Field Summary | |
static java.lang.String |
MEMBERS
Property name for the Members |
static java.lang.String |
NAME
Property name for the League name |
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a listener to changes to this league |
int |
getBestPosition()
|
int |
getLastPosition()
|
java.lang.Integer |
getLeagueId()
Get the league identifier. |
java.util.List |
getMembers()
Get a list of members. |
java.lang.String |
getName()
Get the name of this league |
int |
getPosition()
|
float |
getWeeklyGain()
|
boolean |
hasMembers(int[] accounts)
This method checks that at least one of the specified auser accounts are members of this mini-league. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a listener to changes to this league |
void |
setBestPosition(int bestPosition)
|
void |
setLastPosition(int lastPosition)
|
void |
setMembers(java.util.List list)
Ordered list of members |
void |
setName(java.lang.String newName)
Update the name of this mini league |
void |
setPosition(int position)
|
void |
setWeeklyGain(float weeklyGain)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String MEMBERS
public static final java.lang.String NAME
| Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface Monitorablelistener - New listener to addpublic int getBestPosition()
public int getLastPosition()
public java.lang.Integer getLeagueId()
public java.util.List getMembers()
public java.lang.String getName()
public int getPosition()
public float getWeeklyGain()
public boolean hasMembers(int[] accounts)
accounts - Array of valid account ids
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface Monitorablelistener - New listener to addpublic void setBestPosition(int bestPosition)
bestPosition - The bestPosition to set.public void setLastPosition(int lastPosition)
lastPosition - The lastPosition to set.public void setMembers(java.util.List list)
list - The new member listpublic void setName(java.lang.String newName)
newName - New namepublic void setPosition(int position)
position - The position to set.public void setWeeklyGain(float weeklyGain)
weeklyGain - The weeklyGain to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||