This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
public interface Predicate2<T1,T2>
extends java.util.function.BiPredicate<T1,T2>, java.io.Serializable
A Predicate2 is primarily used in methods like selectWith, detectWith, rejectWith. The first argument
is the element of the collection being iterated over, and the second argument is a parameter passed into
the predicate from the calling method.