public class LReflectionUtils extends Object
| Constructor and Description |
|---|
LReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
convertEmpytStringToNull(T e)
如果属性中string的值是字符串,则转为null
|
static Map<String,Object> |
convertObjectToMap(Object obj) |
static Object |
invokeGetMethod(Object obj,
String fieldName)
执行实体类的get方法
|
public static <T> T convertEmpytStringToNull(T e)
T - e - public static Object invokeGetMethod(Object obj, String fieldName)
T - obj - field - Copyright © 2021. All rights reserved.