Java Map Remove removeDoubleQuotes(Map argMap)

Here you can find the source of removeDoubleQuotes(Map argMap)

Description

Removes double quotes from arguments' value

License

LGPL

Parameter

Parameter Description
argMap map containing arguments and their values

Declaration

private static void removeDoubleQuotes(Map<String, String> argMap) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.Map;

public class Main {
    /**/*from   www  .ja  v a  2 s. c  o  m*/
     * Removes double quotes from arguments' value
     * 
     * @param argMap map containing arguments and their values
     */
    private static void removeDoubleQuotes(Map<String, String> argMap) {
        String value = null;
        for (String key : argMap.keySet()) {
            value = argMap.get(key);
            if (value != null && value.startsWith("\"") && value.endsWith("\"")) {
                argMap.put(key, value.substring(1, value.length() - 1));
            }
        }
    }
}

Related

  1. removeAndCleanFromCollectionMap(KeyT key, ValT toBeRemoved, Map> map)
  2. removeApiUuidMap(String apiName)
  3. removeClassFromMap(final Map the_map, final String the_class_name)
  4. removeColor(Map windowColorCountMap, int windowColorCount, int lastColor)
  5. removeDefaultAnnotationPackage(final String packageName, final Map context)
  6. removeElementFromJsonMap(Map toscaJson, String elementName)
  7. removeEmptyArray(Map map)
  8. removeEmptyValues(Map params)
  9. removeExistingItemsFromProvided(Map existingItems, Map providedItems)