15 lines
315 B
Java
Raw Normal View History

2023-04-23 22:45:59 +08:00
package xyz.zhouxy.plusone.commons.function;
import java.util.function.Predicate;
public class Predicates {
2023-04-23 22:45:59 +08:00
public static <T> Predicate<T> of(Predicate<? super T> predicate) {
2023-04-23 22:45:59 +08:00
return predicate::test;
}
private Predicates() {
throw new IllegalStateException("Utility class");
}
2023-04-23 22:45:59 +08:00
}