Please go through the following example:I have always known that a hashmap take objects as parameters. So if the parameters to the map are
String objects , so is that the reason we are able to insert into the paramsMap() object?
public static final String FUNCTION_NAME = "functionName";
public static final String CREATE_FOLDER_FUNCTION_NAME = "CreateFolder";
public static final String INTERACTION_VERB = "interactionVerb";
public static final int SYNC_SEND_RECEIVE = 1;
public static final String EXECUTION_TIMEOUT = "executionTimeout";
HashMap paramsMap = new HashMap();
paramsMap.put(ATT_Macros.FUNCTION_NAME,
ATT_Macros.CREATE_FOLDER_FUNCTION_NAME);
paramsMap.put(ATT_Macros.INTERACTION_VERB,
new Integer(ATT_Macros.SYNC_SEND_RECEIVE));
paramsMap.put(ATT_Macros.EXECUTION_TIMEOUT, new Long("10000"));