Top Description Methods
org.eclipse.collections.api.block.predicate

public Interface Predicate2<T1, T2>

extends BiPredicate<T1, T2>, Serializable
Annotations
@FunctionalInterface
Imports
java.io.Serializable, java.util.function.BiPredicate

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 Summary

Modifier and TypeMethod and Description
public boolean
accept(T1 argument1, T2 argument2)

public default boolean
test(T1 t1, T2 t2)

Implements java.util.function.BiPredicate.test.

Evaluates this predicate on the given arguments.

Inherited from java.util.function.BiPredicate:
andnegateor

Method Detail

acceptback to summary
public boolean accept(T1 argument1, T2 argument2)
testback to summary
public default boolean test(T1 t1, T2 t2)

Implements java.util.function.BiPredicate.test.

Doc from java.util.function.BiPredicate.test.

Evaluates this predicate on the given arguments.

Annotations
@Override