@SuppressWarnings("unchecked")
  static <R> BiPredicate<R, Throwable> failurePredicateFor(Predicate<? extends Throwable> failurePredicate) {
    return (t, u) -> u != null && ((Predicate<Throwable>) failurePredicate).test(u);
  }
@ SuppressWarnings ( "unchecked" ) static < R > BiPredicate < R , Throwable > failurePredicateFor ( Predicate < ? extends Throwable > failurePredicate ) { return ( t , u ) -> u != null && ( ( Predicate < Throwable > ) failurePredicate ) . test ( u ) ; }
Returns a predicate that evaluates the {@code failurePredicate} against a failure.