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)
ClientSet
public void remove(HubClient client)
ClientSet
public HubClient getFromPublicId(String publicId)
ClientSet
getFromPublicId
in interface ClientSet
publicId
- client public IDpublicId
if registered, or nullpublic HubClient[] getClients()
ClientSet
getClients
in interface ClientSet
public boolean containsClient(HubClient client)
ClientSet
containsClient
in interface ClientSet
client
is currently a member of this setCopyright © 2008–2024. All rights reserved.