【同步】对齐 boot 和 cloud 的逻辑

This commit is contained in:
YunaiV
2024-05-01 09:30:22 +08:00
parent 78e151d4ee
commit 6d40550bbf
55 changed files with 1099 additions and 1982 deletions

View File

@@ -97,6 +97,10 @@ public class CollectionUtils {
.collect(Collectors.toList());
}
public static <T> Set<T> convertSet(Collection<T> from) {
return convertSet(from, v -> v);
}
public static <T, U> Set<U> convertSet(Collection<T> from, Function<T, U> func) {
if (CollUtil.isEmpty(from)) {
return new HashSet<>();