Implement toString() to display the wrapped Map.

This commit is contained in:
hns 2003-07-11 12:52:08 +00:00
parent e9954c5898
commit ebcdef2622

View file

@ -214,4 +214,12 @@ public class MapWrapper extends ScriptableObject {
public String getClassName() {
return "[MapWrapper]";
}
public String toString() {
if (map == null) {
return "[MapWrapper{}]";
} else {
return "[MapWrapper"+map.toString()+"]";
}
}
}