资 源 简 介
Dumps or inspects any objects and converts to readable format string. This library consists of one file only.
-sample
import static tetz42.util.ObjDumper4j.*; : Logger.debug( dumper("The result object:
", theResult) ); Logger.debug( inspecter("foo") );
Dump
There are two dump method, "dump" and "dumper".
"dump" method converts parameters to readable format String.
"dumper" method creates an object to dump the parameters.
When "toString" method of the object is called, the parameters will convert to readable format String.
Both dump parameters as follows:
Array, List, Set
String[]@13b8f864[ "foo" "bar" "baz" ]
Map
HashMap@54bb7759{ "key1": "value1" "key2": "value2" }
Bean
Bean@7cf1bb78{ intField = 10