public class BeanUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
copyBean(Object source,
Object target,
String... ignores)
copy Bean
|
static <T> List<T> |
copyBeanList(Iterable iterable,
Class<T> targetClazz)
copy Bean List
|
static <T> org.springframework.data.domain.Page<T> |
copyBeanPage(org.springframework.data.domain.Page page,
org.springframework.data.domain.Pageable pageable,
Class<T> targetClazz)
copy bean page
|
static <T> List<String> |
getIds(List<T> list,
Class clazz,
String methodName)
get ids
|
public static void copyBean(Object source, Object target, String... ignores)
source - target - public static <T> List<T> copyBeanList(Iterable iterable, Class<T> targetClazz)
T - iterable - targetClazz - public static <T> org.springframework.data.domain.Page<T> copyBeanPage(org.springframework.data.domain.Page page,
org.springframework.data.domain.Pageable pageable,
Class<T> targetClazz)
T - page - pageable - targetClazz - Copyright © 2020 GTMAP. All rights reserved.