no message
All checks were successful
Gitea Actions Build / Build (push) Successful in 1m2s

This commit is contained in:
Armamem0t 2025-09-11 20:49:33 +08:00
parent baa5aafe23
commit 6b7555d727
Signed by: minglipro
GPG Key ID: 5F355A77B22AA93B
5 changed files with 29 additions and 9 deletions

View File

@ -22,4 +22,4 @@
JDKVERSIONS=1.8
GROUPSID=com.mingliqiye.utils
ARTIFACTID=mingli-utils
VERSIONS=3.2.3
VERSIONS=3.2.4

View File

@ -0,0 +1,7 @@
/**
*
* AES 加密
* @author MingLiPro
*
*/
package com.mingliqiye.utils.aes;

View File

@ -23,13 +23,14 @@
package com.mingliqiye.utils.collection;
import com.mingliqiye.utils.stream.SuperStream;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.function.Predicate;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* 集合工具类提供对列表和数组的常用操作方法
@ -337,4 +338,10 @@ public class Collection {
) {
return new ArrayList<>(collection);
}
public static <T> SuperStream<T> toSuperStream(
@NotNull java.util.Collection<T> list
) {
return SuperStream.of(list);
}
}

View File

@ -1,10 +1,13 @@
package com.mingliqiye.utils.stream;
import java.io.*;
import java.util.List;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
public class InputStreanWrapper extends InputStream implements AutoCloseable {
@Getter
@ -72,9 +75,9 @@ public class InputStreanWrapper extends InputStream implements AutoCloseable {
* jdk8 兼容实现 jdk9+ <br>
* 请使用 InputStream.transferTo()
*
* @param outputStream
* @param outputStream 输出流
* @return 转换的字节数
* @throws IOException
* @throws IOException IO错误
*/
public long transferToOutputStream(OutputStream outputStream)
throws IOException {

View File

@ -25,12 +25,13 @@ package com.mingliqiye.utils.stream;
import com.mingliqiye.utils.collection.Lists;
import com.mingliqiye.utils.collection.Maps;
import com.mingliqiye.utils.stream.interfaces.Getable;
import lombok.val;
import org.jetbrains.annotations.NotNull;
import java.util.*;
import java.util.concurrent.ConcurrentMap;
import java.util.function.*;
import java.util.stream.*;
import lombok.val;
import org.jetbrains.annotations.NotNull;
/**
* 自定义的 SuperStream 实现类用于对集合进行流式操作
@ -1430,6 +1431,8 @@ public class SuperStream<T> implements Stream<T> {
* 返回一个收集器将元素收集到 List
*
* @param <T> 元素类型
* @param <K> Map.Key
* @param <V> Map.Value
* @return 收集器
*/
public static <T extends Map.Entry<K, V>, K, V> Collector<