Interface CheckedPredicate<T>

  • Type Parameters:
    T - the type of the object parameter
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface CheckedPredicate<T>
    A checked version of Predicate.

    This is intended to be used with Unchecked.

    • Method Detail

      • test

        boolean test​(T t)
              throws Throwable
        Evaluates this predicate on the given argument.
        t - the input argument
        true if the input argument matches the predicate
        Throwable - if an error occurs