public final class ClassUtils extends Object
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static Object |
getPropertyOrFieldValue(Object object, String propertyOrFieldName)This method will try to retrieve the value of the named property from the object using a corresponding getter method. |
This method will try to retrieve the value of the named property from the object using a corresponding getter method. If no getter method is found then this method will look for the corresponding field and return its value.
object - object to inspectpropertyOrFieldName - the name of the field or property to retrieve