Code example for TreeMap

Methods: putAll

0
    @Override 
    protected void addParametersToContext(ActionContext ac, Map newParams) {
        Map previousParams = ac.getParameters();
        Map combinedParams = null;
        if (previousParams != null) {
            combinedParams = new TreeMap(previousParams);
        } else { 
            combinedParams = new TreeMap();
        } 
        combinedParams.putAll(newParams);
 
        ac.setParameters(combinedParams);
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE