com.feingto.cloud.kit.reflection.ConvertKit Maven / Gradle / Ivy
package com.feingto.cloud.kit.reflection;
import com.feingto.cloud.kit.DateKit;
import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.beanutils.converters.DateConverter;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
/**
* Bean属性转换工具类
*
* @author longfei
*/
public class ConvertKit {
static {
registerDateConverter();
}
/**
* 提取集合中的对象的属性(通过getter函数), 组合成List.
*
* @param collection 来源集合.
* @param propertyName 要提取的属性名.
*/
public static List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy