|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.util.ManagedReferenceHolder
org.starhope.appius.sql.SQLPeerDatum
com.tootsville.UserList
public class UserList
Generic class that handles both buddy lists and ignore lists, depending upon its mood. Unlike most of my stuff, you can actually use the constructor safely, here.
Constructor Summary | |
---|---|
UserList(User myGuy,
boolean buddyTrueBlockFalse)
|
Method Summary | |
---|---|
boolean |
addUser(User other)
TODO: document this method (brpocock, Sep 25, 2009) |
User[] |
asArrayOfUsers()
Deprecated. |
java.util.Set<java.lang.String> |
asNames()
TODO: document this method (brpocock, Oct 13, 2009) |
void |
changed()
(non-Javadoc) |
void |
flush()
This is an overriding method. |
boolean |
isOnList(it.gotoandplay.smartfoxserver.data.User u)
WRITEME: document this method (brpocock, Aug 31, 2009) |
boolean |
removeUser(User other)
TODO: document this method (brpocock, Sep 25, 2009) |
int |
size()
|
org.json.JSONObject |
toJSON(AbstractZone zone)
|
Methods inherited from class org.starhope.appius.sql.SQLPeerDatum |
---|
get, prepare, set, toJSON |
Methods inherited from class org.starhope.appius.util.ManagedReferenceHolder |
---|
deref, setRef |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserList(User myGuy, boolean buddyTrueBlockFalse)
myGuy
- The user whose buddy list or ignore list is being
instantiatedbuddyTrueBlockFalse
- true, for buddy list; false, for ignore list.Method Detail |
---|
public boolean addUser(User other)
other
- The other user, to be added to this list
@Deprecated public User[] asArrayOfUsers()
public java.util.Set<java.lang.String> asNames()
public void changed()
changed
in class SQLPeerDatum
SQLPeerDatum.changed()
public void flush()
flush
in class SQLPeerDatum
SQLPeerDatum.flush()
public boolean isOnList(it.gotoandplay.smartfoxserver.data.User u)
u
- the user who might be on the list
public boolean removeUser(User other)
other
- the user to be removed from the list
public int size()
public org.json.JSONObject toJSON(AbstractZone zone) throws org.json.JSONException
zone
- WRITEME
org.json.JSONException
- WRITEME
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |