Removed Methods |
Object convertTo(Class )
|
|
Object convertTo(Class, Class, Map)
|
|
Object convertTo(Class, Map)
|
Converts this DynamicObject to the specified target class. |
boolean isMap()
|
Returns true if this DynamicObject represents a Map. |
void putElement(Object, Object)
|
Adds the specified key,value pair to this DynamicObject if it's a Map,
otherwise it'll throw an UnsupportedOperationException. |
void removeElement(Object )
|
Removes the value associated with the specified key. |
void setField(String, Object)
|
Assigns a value to the specified field. |
void setField(String, long)
|
Assigns the specified value to the field. |
Added Methods |
(Map<DynamicObject, DynamicObject> ) asAssociativeArray()
|
|
T convertTo(Class<T> )
|
|
T convertTo(Class<T>, Class, Map<Object, Object>)
|
|
T convertTo(Class<T>, Map<Object, Object>)
|
Converts this DynamicObject to the specified target class. |
boolean isAssociativeArray()
|
Returns true if this DynamicObject represents a Map. |
float setField(String, float)
|
Assigns the specified value to the field. |
int setField(String, int)
|
Assigns the specified value to the field. |
Object setField(String, Object)
|
Assigns a value to the specified field. |
long setField(String, long)
|
Assigns the specified value to the field. |
Changed Methods |
Map<String, Object> asFieldsMap()
|
Change in return type from Map to (Map<String, Object> ).
|
Returns a view of this DynamicObject as a Map of Fields. |
List<Object> asList()
|
Change in return type from List to List<Object> .
|
Returns a view of this DynamicObject as a List. |
Map<String, Object> asMap()
|
Change in return type from Map to (Map<String, Object> ).
Change from non-final to final.
|
Returns a view of this DynamicObject as a Map. |
T getArgument(String, Class<T>)
|
Change in return type from Object to T .
Change in signature from (String, Class ) to (String, Class<T> ).
|
|
void setElement(Object, Object)
|
Change from final to non-final.
|
Associates the specified value with the specified key. |
Object setFieldQ(String, Object)
|
Change in return type from void to Object .
|
Assigns a value to the specified field. |
DynamicObject defaultValueOf(Object, boolean, Map<Object, Object>)
|
Change in signature from (Object, boolean, Map ) to (Object, boolean, Map<Object, Object> ).
|
|
boolean setField(String, boolean)
|
Change in return type from void to boolean .
|
Assigns a value to the specified field. |
double setField(String, double)
|
Change in return type from void to double .
|
Assigns the specified value to the field. |
DynamicObject valueOf(Object, boolean, Map<Object, Object>)
|
Change in signature from (Object, boolean, Map ) to (Object, boolean, Map<Object, Object> ).
|
|