| Constructor and Description |
|---|
BasicClientSet(Comparator clientIdComparator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(HubClient client)
Adds a new client to the set.
|
boolean |
containsClient(HubClient client)
Indicates whether a given client is currently a member of this set.
|
HubClient[] |
getClients()
Returns an array of all the currently contained clients.
|
HubClient |
getFromPublicId(String publicId)
Returns the client in the set corresponding to a given public ID.
|
void |
remove(HubClient client)
Removes a client from the set.
|
public BasicClientSet(Comparator clientIdComparator)
clientIdComparator - comparator for client IDspublic void add(HubClient client)
ClientSetpublic void remove(HubClient client)
ClientSetpublic HubClient getFromPublicId(String publicId)
ClientSetgetFromPublicId in interface ClientSetpublicId - client public IDpublicId if registered, or nullpublic HubClient[] getClients()
ClientSetgetClients in interface ClientSetpublic boolean containsClient(HubClient client)
ClientSetcontainsClient in interface ClientSetclient is currently a member of this setCopyright © 2008–2024. All rights reserved.