Interface PredicateE<T,Ex extends Throwable>

Type Parameters:
Ex - An arbitrary exception type that may be thrown
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 PredicateE<T,Ex extends Throwable>
A predicate that is allowed to throw a checked exception.
See Also:
  • Method Details

    • test

      boolean test(T t) throws Ex
      Throws:
      Ex
    • and

      default PredicateE<T,Ex> and(PredicateE<? super T,? extends Ex> other) throws Ex
      Throws:
      Ex
    • negate

      default PredicateE<T,Ex> negate() throws Ex
      Throws:
      Ex
    • or

      default PredicateE<T,Ex> or(PredicateE<? super T,? extends Ex> other) throws Ex
      Throws:
      Ex
    • isEqual

      static <T, Ex extends Throwable> PredicateE<T,Ex> isEqual(Object targetRef)
      Type Parameters:
      Ex - An arbitrary exception type that may be thrown
    • not

      static <T, Ex extends Throwable> PredicateE<T,Ex> not(PredicateE<? super T,? extends Ex> target) throws Ex
      Type Parameters:
      Ex - An arbitrary exception type that may be thrown
      Throws:
      Ex