@Test public void nullMapConvertsToNullMap() { assertNull(PortletParameterUtility.parameterMapToStringStringMap(null)); }
public static Map<String, String> parameterMapToStringStringMap( Map<String, IPortletDefinitionParameter> parametersMap) { if (null == parametersMap) { return null; } Map<String, String> stringMap = new HashMap<>(parametersMap.size()); for (String key : parametersMap.keySet()) { stringMap.put(key, parametersMap.get(key).getValue()); } return stringMap; }
PortletParameterUtility { public static Map<String, String> parameterMapToStringStringMap( Map<String, IPortletDefinitionParameter> parametersMap) { if (null == parametersMap) { return null; } Map<String, String> stringMap = new HashMap<>(parametersMap.size()); for (String key : parametersMap.keySet()) { stringMap.put(key, parametersMap.get(key).getValue()); } return stringMap; } }
PortletParameterUtility { public static Map<String, String> parameterMapToStringStringMap( Map<String, IPortletDefinitionParameter> parametersMap) { if (null == parametersMap) { return null; } Map<String, String> stringMap = new HashMap<>(parametersMap.size()); for (String key : parametersMap.keySet()) { stringMap.put(key, parametersMap.get(key).getValue()); } return stringMap; }  }
PortletParameterUtility { public static Map<String, String> parameterMapToStringStringMap( Map<String, IPortletDefinitionParameter> parametersMap) { if (null == parametersMap) { return null; } Map<String, String> stringMap = new HashMap<>(parametersMap.size()); for (String key : parametersMap.keySet()) { stringMap.put(key, parametersMap.get(key).getValue()); } return stringMap; }  static Map<String, String> parameterMapToStringStringMap(
            Map<String, IPortletDefinitionParameter> parametersMap); }
PortletParameterUtility { public static Map<String, String> parameterMapToStringStringMap( Map<String, IPortletDefinitionParameter> parametersMap) { if (null == parametersMap) { return null; } Map<String, String> stringMap = new HashMap<>(parametersMap.size()); for (String key : parametersMap.keySet()) { stringMap.put(key, parametersMap.get(key).getValue()); } return stringMap; }  static Map<String, String> parameterMapToStringStringMap(
            Map<String, IPortletDefinitionParameter> parametersMap);  }