From 9d118ed98d2cee66537a431f0a75bdb0f33e2dfc Mon Sep 17 00:00:00 2001 From: minglipro Date: Thu, 11 Sep 2025 21:32:01 +0800 Subject: [PATCH] no message --- gradle.properties | 2 +- .../java/com/mingliqiye/utils/stream/SuperStream.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index 96522fc..e8cbe03 100644 --- a/gradle.properties +++ b/gradle.properties @@ -22,4 +22,4 @@ JDKVERSIONS=1.8 GROUPSID=com.mingliqiye.utils ARTIFACTID=mingli-utils -VERSIONS=3.2.4 +VERSIONS=3.2.5 diff --git a/src/main/java/com/mingliqiye/utils/stream/SuperStream.java b/src/main/java/com/mingliqiye/utils/stream/SuperStream.java index 548c87d..3cb424b 100644 --- a/src/main/java/com/mingliqiye/utils/stream/SuperStream.java +++ b/src/main/java/com/mingliqiye/utils/stream/SuperStream.java @@ -25,13 +25,12 @@ 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 实现类,用于对集合进行流式操作。 @@ -296,8 +295,9 @@ public class SuperStream implements Stream { * * @param predicate 谓词函数 * @return SuperStream 实例 + * @since 3.2.5 */ - public SuperStream filter(Function predicate) { + public SuperStream filterBoolean(Function predicate) { return new SuperStream<>(stream.filter(predicate::apply)); }