public final class BeanUtils extends Object
| 构造器和说明 |
|---|
BeanUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Field> |
getAllFields(Class<?> clazz)
Get all fields of the parent and child classes
|
static Map<String,Field> |
getExcelFieldsMap(Class<?> excelClass)
Generate excel field Map
|
static List<ExcelFieldProperty> |
getExcelFiledProperties(Class<?> excelClass,
String[] ignores)
Get all excel field properties of the parent and child classes
|
static Object |
getFieldValue(Object o,
Field field)
Gets the value in the field
|
static void |
setFieldValue(Object o,
Field field,
Object value)
Set the value of a field of an object
|
public static void setFieldValue(Object o, Field field, Object value)
o - objectfield - fieldvalue - valuepublic static Object getFieldValue(Object o, Field field)
o - objectfield - fieldpublic static List<ExcelFieldProperty> getExcelFiledProperties(Class<?> excelClass, String[] ignores)
excelClass - Excel mapped entityignores - The exported field is to be ignoredpublic static Map<String,Field> getExcelFieldsMap(Class<?> excelClass)
excelClass - Excel mapped entityCopyright © 2022. All rights reserved.