Interface DoubleThrowingPredicate<T,​E extends Throwable,​F extends Throwable>


  • public interface DoubleThrowingPredicate<T,​E extends Throwable,​F extends Throwable>
    Determines a true or false value for a given input. You should only use it if the thrown exceptions should cause two completely different reactions in client code.
    • Method Detail

      • apply

        boolean apply​(@Nullable
                      T input)
               throws E extends Throwable,
                      F extends Throwable
        Returns the result of applying this predicate to input. This method is generally expected, but not absolutely required, to have the following properties:
        • Its execution does not cause any observable side effects.
        • The computation is consistent with equals; that is, Objects.equal(java.lang.Object, java.lang.Object)(a, b) implies that predicate.apply(a) == predicate.apply(b)).
        Throws:
        NullPointerException - if input is null and this predicate does not accept null arguments
        E extends Throwable