From 96fb8468644b3614ef22fdfd9c772e1588c21300 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sat, 2 Mar 2024 23:26:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xyz/zhouxy/plusone/commons/function/Predicates.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/xyz/zhouxy/plusone/commons/function/Predicates.java b/src/main/java/xyz/zhouxy/plusone/commons/function/Predicates.java index adb4989..5cb83a6 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/function/Predicates.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/function/Predicates.java @@ -43,11 +43,11 @@ public class Predicates { * * * @param 目标类型 - * @param predicate 原 {@link Predicate} 实例 - * @return 包装的 {@link Predicate} 实例 + * @param predicate Lambda 表达式 + * @return 传入的表达式自动成为 {@link Predicate} 实例 */ - public static Predicate of(Predicate predicate) { - return predicate::test; + public static Predicate of(Predicate predicate) { + return predicate; } private Predicates() {