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() {