| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key) |
Object |
get(String key) |
Double |
getDouble(String key)
Tries to convert the value associated with the key to an
Double |
Integer |
getInteger(String key)
Tries to convert the value associated with the key to an
Integer |
Long |
getLong(String key)
Tries to convert the value associated with the key to an
Long |
String |
getString(String key)
Tries to convert the value associated with the key to an
String |
Map<String,Object> |
getTarget()
Returns the operation target
|
JsonModel.ObjectOps |
put(String key,
Object value) |
JsonModel.ObjectOps |
putAll(Map<String,Object> map) |
JsonModel.ObjectOps |
putIfAbsent(String key,
Object value)
Adds the value to the target map if it is not already present
|
JsonModel.ObjectOps |
remove(String key) |
<T> T |
to(Class<T> targetClass)
Map the target of this
JsonModel.ObjectOps to the provided class |
JsonModel.ObjectOps |
transform(Transformer<Map<String,Object>> transformer)
Allows transformations of the target object.
|
boolean containsKey(String key)
Map.containsKey(Object)JsonModel.ObjectOps put(String key, Object value)
Map.put(Object, Object)JsonModel.ObjectOps putIfAbsent(String key, Object value)
key - the keyvalue - the valueJsonModel.ObjectOpsObject get(String key)
Map.get(Object)Integer getInteger(String key)
Integerkey - the keyLong getLong(String key)
Longkey - the keyDouble getDouble(String key)
Doublekey - the keyString getString(String key)
Stringkey - the keyJsonModel.ObjectOps putAll(Map<String,Object> map)
Map.putAll(java.util.Map)JsonModel.ObjectOps remove(String key)
Map.remove(Object)JsonModel.ObjectOps transform(Transformer<Map<String,Object>> transformer)
JsonModel.ObjectOps will be be replaced
with the Object returned by the Transformer.transform(Object, Configuration)transformer - the transformer to useJsonModel.ObjectOps<T> T to(Class<T> targetClass)
JsonModel.ObjectOps to the provided classT - template classtargetClass - class to convert the target object toCopyright © 2011–2013. All rights reserved.