简化代码。

dev
ZhouXY108 2024-03-02 23:26:35 +08:00
parent fe190d8f43
commit 96fb846864
1 changed files with 4 additions and 4 deletions

View File

@ -43,11 +43,11 @@ public class Predicates {
* </pre> * </pre>
* *
* @param <T> * @param <T>
* @param predicate {@link Predicate} * @param predicate Lambda
* @return {@link Predicate} * @return {@link Predicate}
*/ */
public static <T> Predicate<T> of(Predicate<? super T> predicate) { public static <T> Predicate<T> of(Predicate<T> predicate) {
return predicate::test; return predicate;
} }
private Predicates() { private Predicates() {