Interface CheckedPredicate<T>

All Superinterfaces:
Predicate<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CheckedPredicate<T> extends Predicate<T>
A predicate which wraps all exceptions in runtime exceptions so that expressions throwing checked exceptions can be nicely used in the Stream API
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    doTest(T t)
     
    default boolean
    test(T t)
     

    Methods inherited from interface java.util.function.Predicate

    and, negate, or