Interface ThrowableBiPredicate<T,U>

Type Parameters:
T - the type of the first argument to the predicate
U - the type of the second argument the predicate
All Superinterfaces:
BiPredicate<T,U>
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 ThrowableBiPredicate<T,U> extends BiPredicate<T,U>
Represents a predicate (boolean-valued function) of two arguments. This is the two-arity specialization of ThrowablePredicate.

Permits checked exceptions unlike BiPredicate

This is a functional interface whose functional method is test(Object, Object).

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    test(T t, U u)
    Evaluates this predicate on the given arguments.
    boolean
    testUnsafe(T t, U u)
    Evaluates this predicate on the given arguments.

    Methods inherited from interface java.util.function.BiPredicate

    and, negate, or
  • Method Details

    • testUnsafe

      boolean testUnsafe(T t, U u) throws Throwable
      Evaluates this predicate on the given arguments.
      Parameters:
      t - the first input argument
      u - the second input argument
      Returns:
      true if the input arguments match the predicate, otherwise false
      Throws:
      Throwable - occurred during processing
    • test

      default boolean test(T t, U u)
      Evaluates this predicate on the given arguments.
      Specified by:
      test in interface BiPredicate<T,U>
      Parameters:
      t - the first input argument
      u - the second input argument
      Returns:
      true if the input arguments match the predicate, otherwise false