com.cherokeesoft.db.utils.log.Log Maven / Gradle / Ivy
package com.cherokeesoft.db.utils.log;
import java.util.Iterator;
import java.util.Map;
public class Log {
public static String toPrint(Map map) {
StringBuilder sb = new StringBuilder();
Iterator> iter = map.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry entry = iter.next();
sb.append(entry.getKey());
sb.append('=').append('"');
sb.append(entry.getValue());
sb.append('"');
if (iter.hasNext()) {
sb.append(',').append(' ');
}
}
return sb.toString();
}
}