Package nl.rrd.wool.json
Class JsonObject
- java.lang.Object
-
- nl.rrd.wool.json.JsonObject
-
public class JsonObject extends Object
This class has a toMap() method that uses Jackson to convert the object to a map and a toString() method that returns the simple class name and the map string. It also implements hashCode() and equals() using the map. Extending this class is an easy way to get a meaningful toString(). If extending is not possible, you may use the static toString() method in this class.
-
-
Constructor Summary
Constructors Constructor Description JsonObject()
-
Method Summary
Modifier and Type Method Description booleanequals(Object obj)inthashCode()Map<?,?>toMap()Returns this object as a map.static Map<?,?>toMap(Object obj)Returns the specified object as a map.StringtoString()static StringtoString(Object obj)Returns the string representation for the specified object.
-