de.knup.jedi.jayshare
Class ServiceLookupList

java.lang.Object
  |
  +--de.knup.jedi.jayshare.ServiceLookupList

public class ServiceLookupList
extends java.lang.Object

Lookup up service information of currently available users.

Version:
0.1 $Revision: 1.4 $
Author:
B. Pietsch

Inner Class Summary
static class ServiceLookupList.Service
          Service information.
 
Field Summary
private  java.util.TreeMap tree
          Lookup list (actually a tree).
 
Constructor Summary
ServiceLookupList()
          Create a new ServiceLookupList.
 
Method Summary
 ServiceLookupList.Service getService(java.lang.String hashedID)
          Search for the user's service information.
 void removeHashedID(java.lang.String hashedID)
          Remove a user from the list.
 void setPair(java.lang.String hashedID, ServiceLookupList.Service service)
          Insert a new user and service information entry.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

tree

private java.util.TreeMap tree
Lookup list (actually a tree).
Constructor Detail

ServiceLookupList

public ServiceLookupList()
Create a new ServiceLookupList.
Method Detail

setPair

public void setPair(java.lang.String hashedID,
                    ServiceLookupList.Service service)
Insert a new user and service information entry.
Parameters:
hashedID - is the user's hashed JID.
service - is the service information entry connected to the user.

removeHashedID

public void removeHashedID(java.lang.String hashedID)
Remove a user from the list.

getService

public ServiceLookupList.Service getService(java.lang.String hashedID)
Search for the user's service information.