Interface PredicateWithExceptions2<T,E1 extends Throwable,E2 extends Throwable>

Type Parameters:
T - the type of the tested value
E1 - the first type of exceptions
E2 - the second type of exceptions

public interface PredicateWithExceptions2<T,E1 extends Throwable,E2 extends Throwable>
A predicate that might throw exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(T t)
    Applies the test.
  • Method Details

    • test

      boolean test(T t) throws E1, E2
      Applies the test.
      Parameters:
      t - the argument to the test
      Returns:
      true if and only if the test is true for t
      Throws:
      E1 - a first type of exceptions thrown by the test
      E2 - a second type of exceptions thrown by the test