com.anywherecommerce.android.sdk.util
Class ObjectTools
-
java.lang.Object
-
com.anywherecommerce.android.sdk.util.ObjectTools
-
public class <span class="typeNameLabel">ObjectTools</span> extends java.lang.Object
Constructor Summary
Constructor and Description`<span class="memberNameLink">
ObjectTools()`
Method Summary
Modifier and TypeMethod and Description`static void````
<span class="memberNameLink">
copyFieldsTo(java.lang.Object fromObj,
java.lang.Object toObj)
` `static java.util.ArrayList<java.lang.reflect.Field>
getAllFields(java.lang.Class<?> c)
static java.lang.reflect.Field````
getField(java.lang.Class<?> clazz,
java.lang.String fieldName)
```
Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
Constructor Detail
ObjectTools
`public ObjectTools()`
Method Detail
getField
```
public static java.lang.reflect.Field getField(java.lang.Class<?> clazz,
java.lang.String fieldName)
throws java.lang.NoSuchFieldException
```
Throws:`java.lang.NoSuchFieldException`
getAllFields
`public static java.util.ArrayList<java.lang.reflect.Field> getAllFields(java.lang.Class<?> c)`
copyFieldsTo
```
public static void copyFieldsTo(java.lang.Object fromObj,
java.lang.Object toObj)
```