public final class MethodUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Method |
getGetterMethod(Class<?> beanType,
String propertyName) |
static Set<String> |
getProperties(Class<?> beanType) |
static String |
getPropertyName(String methodName) |
static Method |
getSetterMethod(Class<?> beanType,
String propertyName) |
static boolean |
isRequiredMethod(Method method)
Return true if is Required Field else false
|
static void |
setProperties(Object bean,
String property,
Object value) |
public static Set<String> getProperties(Class<?> beanType)
beanType - may not be nullpublic static void setProperties(Object bean, String property, Object value)
bean - may not be nullproperty - may not be nullvalue - may be nullpublic static boolean isRequiredMethod(Method method)
method - may not be nullCopyright © 2018 Mario Tema. All rights reserved.