简化代码。

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>
*
* @param <T>
* @param predicate {@link Predicate}
* @return {@link Predicate}
* @param predicate Lambda
* @return {@link Predicate}
*/
public static <T> Predicate<T> of(Predicate<? super T> predicate) {
return predicate::test;
public static <T> Predicate<T> of(Predicate<T> predicate) {
return predicate;
}
private Predicates() {