Implement toString() to display the wrapped Map.
This commit is contained in:
parent
e9954c5898
commit
ebcdef2622
1 changed files with 8 additions and 0 deletions
|
@ -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()+"]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue