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 Summary

    Modifier and Type
    Method
    Description
    boolean
    Test the given input values and return a boolean.
  • Method Details

    • test

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