Package eu.europa.esig.dss.jades
Class JsonObject
java.lang.Object
eu.europa.esig.dss.jades.JsonObject
Represents a wrapper of a Map with JsonObject methods
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty HashMapJsonObject(Map<String, Object> m) Wraps a provided Map to the object -
Method Summary
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
-