se.unlogic.standardutils.json
Class JsonObject
java.lang.Object
se.unlogic.standardutils.json.JsonObject
- All Implemented Interfaces:
- Serializable, JsonNode
public class JsonObject
- extends Object
- implements JsonNode
A JSON object component having children
Equalizes the "composite" of the "composite pattern" design pattern.
- Author:
- sikstromj
- See Also:
- Serialized Form
JsonObject
public JsonObject()
toJson
public String toJson()
- Specified by:
toJson
in interface JsonNode
toJson
public String toJson(StringBuilder stringBuilder)
- Specified by:
toJson
in interface JsonNode
putField
public void putField(String key,
JsonNode value)
putField
public void putField(String key,
String value)
removeField
public void removeField(String key)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2011. All Rights Reserved.