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:
    java.util.function.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 java.util.function.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:
    ThrowablePredicate
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      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 Detail

      • testUnsafe

        boolean testUnsafe​(T t,
                           U u)
                    throws java.lang.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:
        java.lang.Throwable - occurred during processing
      • test

        default boolean test​(T t,
                             U u)
        Evaluates this predicate on the given arguments.
        Specified by:
        test in interface java.util.function.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