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 void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<String,Object>>
entrySet()
Object
get(Object key)
boolean
isEmpty()
Set<String>
keySet()
Object
put(String key, Object value)
void
putAll(Map<? extends String,? extends Object> m)
Object
remove(Object key)
int
size()
String
toJSONString()
Converts the object to its JSON String representationString
toString()
Collection<Object>
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-Map
to wrap
-
-
Method Details
-
toJSONString
Converts the object to its JSON String representation- Returns:
String
JSON
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,Object>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-