public abstract class BeanUtils extends Object
| 构造器和说明 |
|---|
BeanUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
copy(Object original) |
static <T> T |
copy(Object original,
Class<T> requiredType,
PropertyFilter propertyFilter) |
static <T> T |
copy(Object original,
PropertyFilter propertyFilter) |
static void |
copyProperties(Object original,
Object destination) |
static void |
copyProperties(Object original,
Object destination,
PropertyFilter propertyFilter) |
static <T> T |
getProperty(Object bean,
String propertyName,
Class<T> requiredType) |
static <T> T |
getProperty(Object bean,
String propertyName,
Class<T> requiredType,
T defaultValue) |
static <T> T |
instantiate(Class<T> requiredType,
Object... arguments) |
static <T> T |
instantiate(String className) |
static <T> T |
instantiate(String className,
ClassLoader classLoader,
Object... arguments) |
static <T> T |
instantiate(String className,
Object... arguments) |
static void |
setProperty(Object bean,
String propertyName,
Object value) |
public static <T> T copy(Object original)
public static <T> T copy(Object original, PropertyFilter propertyFilter)
public static <T> T copy(Object original, Class<T> requiredType, PropertyFilter propertyFilter)
public static void copyProperties(Object original, Object destination, PropertyFilter propertyFilter)
public static <T> T getProperty(Object bean, String propertyName, Class<T> requiredType)
public static <T> T getProperty(Object bean, String propertyName, Class<T> requiredType, T defaultValue)
public static <T> T instantiate(String className)
public static <T> T instantiate(String className, ClassLoader classLoader, Object... arguments)
Copyright © 2020. All rights reserved.