public static <T,R> List<R> listTransForm(List<T> fromList,Class<R> distClass){
return Lists.transform(fromList, new Function<T, R>() {
@Override
public R apply(T fromBean) {
R toBean = null;
try {
toBean = distClass.newInstance();
}catch(Exception e){
e.printStackTrace();
}
BeanUtils.copyProperties(fromBean,toBean);
return toBean;
}
});
}