Code example for Hashtable

Methods: putAll

0
	public void setGlobals(Map<String, Object> globals) {
		this.globals = globals;
	} 
	 
	public Map<String, Object> getEvent(int i) {
		Map<String, Object> event = new Hashtable<String, Object>();
		event.putAll(globals);
		event.putAll(soundEvents.get(i % soundEvents.size()));
		return event;
	} 
	 
	 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE