|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmhframework.net.MHSerializableClientList
public class MHSerializableClientList
This class represents the list of connected clients that is passed from the server to the clients during a MHMessageType.BROADCAST_CLIENT_LIST operation.
Constructor Summary | |
---|---|
MHSerializableClientList()
|
Method Summary | |
---|---|
void |
add(MHSerializableClientInfo info)
Add a client information record to this collection. |
MHSerializableClientInfo |
get(int clientID)
Retrieve client information by ID number lookup. |
MHSerializableClientInfo |
get(java.lang.String name)
Retrieve client information by name lookup. |
java.util.Iterator<MHSerializableClientInfo> |
iterator()
Allows the use of enhanced for loops for iterating through this collection. |
void |
remove(int id)
Removes a client's information from this collection. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MHSerializableClientList()
Method Detail |
---|
public void add(MHSerializableClientInfo info)
info
- The client information record to add.public MHSerializableClientInfo get(int clientID)
clientID
- The ID number of the client to retrieve.
public MHSerializableClientInfo get(java.lang.String name)
clientID
- The name of the client to retrieve.
public java.util.Iterator<MHSerializableClientInfo> iterator()
iterator
in interface java.lang.Iterable<MHSerializableClientInfo>
public void remove(int id)
id
- The ID number of the client to remove. This number
can be obtained on the server by calling the get()
methods in MHClientList. It could be argued that the client
should never use this functionality.public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |