public void fillParameterValues(Map<String, Object> valuesMap) {
        AssertUtils.assertNotNull(valuesMap, "Value map cannot be null");

        if (this.sqlParameterNames != null) {

            String parameterName = null;
            this.sqlParameterValues = new ArrayList<Object>();

            // using for instead of iterator because this way I control position
            // I am getting.
            for (int i = 0; i < this.sqlParameterNames.size(); i++) {
                parameterName = this.sqlParameterNames.get(i);

                if (valuesMap.containsKey(parameterName) == true) {
                    this.sqlParameterValues.add(valuesMap.get(parameterName));
                } else {
                    throw new IllegalArgumentException(String.format(HandlersConstants.ERROR_PARAMETER_NOT_FOUND, parameterName));
                }
            }
        }
    }
public void fillParameterValues ( Map < String , Object > valuesMap ) { AssertUtils . assertNotNull ( valuesMap , "Value map cannot be null" ) ; if ( this . sqlParameterNames != null ) { String parameterName = null ; this . sqlParameterValues = new ArrayList < Object > ( ) ; for ( int i = 0 ; i < this . sqlParameterNames . size ( ) ; i ++ ) { parameterName = this . sqlParameterNames . get ( i ) ; if ( valuesMap . containsKey ( parameterName ) == true ) { this . sqlParameterValues . add ( valuesMap . get ( parameterName ) ) ; } else { throw new IllegalArgumentException ( String . format ( HandlersConstants . ERROR_PARAMETER_NOT_FOUND , parameterName ) ) ; } } } }
Utility function.
Fills this ProcessedInput with values.
This function iterates over parameter names list and loads corresponding value from MAp

@param valuesMap Map of values which would be loaded