Package eu.europa.esig.dss.jades
Class JsonObject
java.lang.Object
eu.europa.esig.dss.jades.JsonObject
public class JsonObject extends Object implements Map<String,Object>
Represents a wrapper of a Map with JsonObject methods
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description JsonObject()Creates an empty HashMapJsonObject(Map<String,Object> m)Wraps a provided Map to the object -
Method Summary
Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,Object>>entrySet()Objectget(Object key)booleanisEmpty()Set<String>keySet()Objectput(String key, Object value)voidputAll(Map<? extends String,? extends Object> m)Objectremove(Object key)intsize()StringtoJSONString()Converts the object to its JSON String representationStringtoString()Collection<Object>values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
JsonObject
public JsonObject()Creates an empty HashMap -
JsonObject
Wraps a provided Map to the object- Parameters:
m-Mapto wrap
-
-
Method Details
-
toJSONString
Converts the object to its JSON String representation- Returns:
StringJSON
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-