de.cau.cs.kieler.kwebs.util
Class Debug

java.lang.Object
  extended by de.cau.cs.kieler.kwebs.util.Debug

public final class Debug
extends Object

Debugging utilities, mostly for displaying objects.

Rating proposed yellow
(2011-08-02) reviewed by ckru, mri, msp

Method Summary
static String dumpMapContents(Map<?,?> map, boolean toScreen)
          Creates a string representation of the contents of a map.
static void printMap(Map<?,?> map)
          Displays the contents of a map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

printMap

public static void printMap(Map<?,?> map)
Displays the contents of a map.

Parameters:
map - the map from which the key/value pairs are to be displayed

dumpMapContents

public static String dumpMapContents(Map<?,?> map,
                                     boolean toScreen)
Creates a string representation of the contents of a map.

Parameters:
map - the map from which the key/value pairs are to be displayed
toScreen - whether to display on System.out
Returns:
a string representation of the contents of a map