Interface BiPredicate<T1,​T2>

  • Type Parameters:
    T1 - the first value
    T2 - the second value
    All Known Implementing Classes:
    ObjectHelper.BiObjectPredicate
    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 BiPredicate<@NonNull T1,​@NonNull T2>
    A functional interface (callback) that returns true or false for the given input values.
    • Method Detail

      • test

        boolean test​(@NonNull
                     @NonNull T1 t1,
                     @NonNull
                     @NonNull T2 t2)
              throws java.lang.Throwable
        Test the given input values and return a boolean.
        Parameters:
        t1 - the first value
        t2 - the second value
        Returns:
        the boolean result
        Throws:
        java.lang.Throwable - if the implementation wishes to throw any type of exception