public static <U,V>String printMap(final Map<U,V> map,final Converter<U> keyConverter,final Converter<V> valueConverter){
  final StringBuilder sb=new StringBuilder("{ ");
  String separator="";
  for (  final Entry<U,V> entry : map.entrySet()) {
    sb.append(separator);
    sb.append(keyConverter.convert(entry.getKey()));
    sb.append("=>");
    sb.append(valueConverter.convert(entry.getValue()));
    separator=", ";
  }
  sb.append(" }");
  return sb.toString();
}

public static < U , V > String printMap ( final Map < U , V > map , final Converter < U > keyConverter , final Converter < V > valueConverter ) { final StringBuilder sb = new StringBuilder ( "{ " ) ; String separator = "" ; for ( final Entry < U , V > entry : map . entrySet ( ) ) { sb . append ( separator ) ; sb . append ( keyConverter . convert ( entry . getKey ( ) ) ) ; sb . append ( "=>" ) ; sb . append ( valueConverter . convert ( entry . getValue ( ) ) ) ; separator = ", " ; } sb . append ( " }" ) ; return sb . toString ( ) ; }
pretty prints a map , using the provided converters for the keys and values .
