public class BasicClientSet extends java.lang.Object implements ClientSet
Modifier and Type | Field and Description |
---|---|
private java.util.Map |
publicIdMap_ |
Constructor and Description |
---|
BasicClientSet(java.util.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(java.lang.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(java.util.Comparator clientIdComparator)
clientIdComparator
- comparator for client IDspublic void add(HubClient client)
ClientSet
public void remove(HubClient client)
ClientSet
public HubClient getFromPublicId(java.lang.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 set