|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jogre.common.UserList
Transmittable user list data object. Contains the a HashMap of users.
Field Summary | |
static String |
USER_LIST
|
protected HashMap |
userlist
List of users. |
Constructor Summary | |
UserList()
Default constructor of a UserList object. |
|
UserList(String inString)
Constructor which reads a user list from a String. |
Method Summary | |
void |
addUser(String username,
int rating)
Creates a new User using a username and a rating and adds to the HashMap. |
boolean |
containsUser(String username)
Return true if the user list contains this user. |
String |
flatten()
Flatten the current list of logged on users. |
Vector |
getUsers()
Returns a list of all the users. |
void |
removeUser(String username)
Remove user from the list. |
int |
size()
Return the number of users. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String USER_LIST
protected HashMap userlist
Constructor Detail |
public UserList()
public UserList(String inString) throws TransmissionException
inString
- TransmissionException
- Thrown if there is a problem in transmission.Method Detail |
public void addUser(String username, int rating)
username
- Username of User.rating
- Rating of this user.public void removeUser(String username)
username
- public boolean containsUser(String username)
username
- Username to check for in the list.public Vector getUsers()
public String flatten()
flatten
in interface ITransmittable
ITransmittable.flatten()
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |