Code example for HashMap

Methods: keySet

0
            String[] values = (String[])paramsMap.get(name);
            return values != null && values.length > 0 ? values[0] : null;
        } 
 
        public Enumeration getParameterNames() {
            return Collections.enumeration(paramsMap.keySet());
        } 
 
        public Map getParameterMap() {
            HashMap clone = (HashMap)paramsMap.clone();
            for (Iterator it = clone.entrySet().iterator(); it.hasNext();) {
                Map.Entry entry = (Map.Entry)it.next();
                entry.setValue(((String[])entry.getValue()).clone());
            } 
            return Collections.unmodifiableMap(clone);
        } 
    } 
}