|
|
@ -33,7 +33,7 @@ public class BeanUtil {
|
|
|
|
return Optional.ofNullable(sources)
|
|
|
|
return Optional.ofNullable(sources)
|
|
|
|
.map(each -> {
|
|
|
|
.map(each -> {
|
|
|
|
List<T> targetList = new ArrayList<T>(each.size());
|
|
|
|
List<T> targetList = new ArrayList<T>(each.size());
|
|
|
|
each.parallelStream()
|
|
|
|
each.stream()
|
|
|
|
.forEach(item -> targetList.add(BEAN_MAPPER_BUILDER.map(item, clazz)));
|
|
|
|
.forEach(item -> targetList.add(BEAN_MAPPER_BUILDER.map(item, clazz)));
|
|
|
|
return targetList;
|
|
|
|
return targetList;
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -44,7 +44,7 @@ public class BeanUtil {
|
|
|
|
return Optional.ofNullable(sources)
|
|
|
|
return Optional.ofNullable(sources)
|
|
|
|
.map(each -> {
|
|
|
|
.map(each -> {
|
|
|
|
Set<T> targetSize = new HashSet<T>(each.size());
|
|
|
|
Set<T> targetSize = new HashSet<T>(each.size());
|
|
|
|
each.parallelStream()
|
|
|
|
each.stream()
|
|
|
|
.forEach(item -> targetSize.add(BEAN_MAPPER_BUILDER.map(item, clazz)));
|
|
|
|
.forEach(item -> targetSize.add(BEAN_MAPPER_BUILDER.map(item, clazz)));
|
|
|
|
return targetSize;
|
|
|
|
return targetSize;
|
|
|
|
})
|
|
|
|
})
|
|
|
|