Code example for Hashtable

0
 * Dispatches OSCMessages to registered listeners. 
 *  
 */ 
 
public class OSCPacketDispatcher { 
	// use Hashtable for JDK1.1 compatability 
	private Hashtable addressToClassTable = new Hashtable();
	 
	/** 
	 *  
	 */ 
	public OSCPacketDispatcher() { 
		super(); 
	} 
 
	public void addListener(String address, OSCListener listener) {
		addressToClassTable.put(address, listener);
	} 
	 
	public void dispatchPacket(OSCPacket packet) {
		if (packet instanceof OSCBundle)