Interface Predicate2<T1,​T2>

  • All Superinterfaces:
    BiPredicate<T1,​T2>, Serializable
    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 Predicate2<T1,​T2>
    extends BiPredicate<T1,​T2>, 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.
    • Method Detail

      • accept

        boolean accept​(T1 argument1,
                       T2 argument2)