public static void defineOrder(ProcessedInput processedInput, QueryParameters parameters) {
        String parameterName = null;

        for (int i = 0; i < processedInput.getAmountOfParameters(); i++) {
            parameterName = processedInput.getParameterName(i);

            if (parameterName != null) {
                parameters.updatePosition(parameterName, i);
            }
        }
    }
public static void defineOrder ( ProcessedInput processedInput , QueryParameters parameters ) { String parameterName = null ; for ( int i = 0 ; i < processedInput . getAmountOfParameters ( ) ; i ++ ) { parameterName = processedInput . getParameterName ( i ) ; if ( parameterName != null ) { parameters . updatePosition ( parameterName , i ) ; } } }
Defines order of @parameters based on @processedInput

@param processedInput InputHandler processedInput
@param parameters     Query Parameters ordering of which would be updated