isql.util
Class CollectionsToString

java.lang.Object
  extended by isql.util.CollectionsToString

public class CollectionsToString
extends java.lang.Object

Utility functions to convert collections to strings (for debug purposes)

Author:
SHZ Dec 11, 2007

Constructor Summary
CollectionsToString()
           
 
Method Summary
static
<K,V> java.lang.String
mapToString(java.util.Map<K,V> map)
          Converts the map to a string of the type [k1->v1],[k2->v2]...
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionsToString

public CollectionsToString()
Method Detail

mapToString

public static <K,V> java.lang.String mapToString(java.util.Map<K,V> map)
Converts the map to a string of the type [k1->v1],[k2->v2]... where k1..n are the map keys and v1..vn are the map values

Type Parameters:
K - the key type
V - the value type
Parameters:
map - the map to convert
Returns:
the text resulting from the conversion