public static <T> Predicate<T> predicate(CheckedPredicate<T> predicate) {
        return Unchecked.predicate(predicate, Unchecked.RETHROW_ALL);
    }
public static < T > Predicate < T > predicate ( CheckedPredicate < T > predicate ) { return Unchecked . predicate ( predicate , Unchecked . RETHROW_ALL ) ; }
Wrap a {@link CheckedPredicate} in a {@link Predicate}.
<p>
Example:
<code><pre>
Stream.of("a", "b", "c").filter(Unchecked.predicate(s -> {
if (s.length() > 10)
throw new Exception("Only short strings allowed");

return true;
}));
</pre></code>