Interface CheckedPredicate<T,​E extends java.lang.Exception>

  • All Superinterfaces:
    CheckedFunction<T,​java.lang.Boolean,​E>, java.util.function.Function<T,​java.lang.Boolean>, java.util.function.Predicate<T>
    All Known Subinterfaces:
    CheckedEolPredicate<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,​E extends java.lang.Exception>
    extends java.util.function.Predicate<T>, CheckedFunction<T,​java.lang.Boolean,​E>
    Since:
    1.6
    Author:
    Sina Madani
    • Method Detail

      • applyThrows

        default java.lang.Boolean applyThrows​(T t)
                                       throws E extends java.lang.Exception
        Specified by:
        applyThrows in interface CheckedFunction<T,​java.lang.Boolean,​E extends java.lang.Exception>
        Throws:
        E extends java.lang.Exception
      • test

        default boolean test​(T t)
                      throws java.lang.RuntimeException
        Specified by:
        test in interface java.util.function.Predicate<T>
        Throws:
        java.lang.RuntimeException
      • testThrows

        boolean testThrows​(T t)
                    throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception