public static String mapToCsv(Map<String,String> map) {
		StringBuilder sb = new StringBuilder();
		for (String key : map.keySet()) {
			sb.append(",");
			String val = map.get(key);
			sb.append(key + "=" + val);
		}
		return sb.toString().substring(1);
	}
public static String mapToCsv(Map<String,String> map) {
		StringBuilder sb = new StringBuilder();
		for (String key : map.keySet()) {
			sb.append(",");
			String val = map.get(key);
			sb.append(key + "=" + val);
		}
		return sb.toString().substring(1);
	}
public static String mapToCsv ( Map < String , String > map ) { StringBuilder sb = new StringBuilder ( ) ; for ( String key : map . keySet ( ) ) { sb . append ( "," ) ; String val = map . get ( key ) ; sb . append ( key + "=" + val ) ; } return sb . toString ( ) . substring ( 1 ) ; }
Returns a String containing a comma-separated list
of name=value pairs from a map.

@param map
@return String csv
Returns a String containing a comma - separated list of name = value pairs from a map .