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

public Interface Predicate<T>

extends Predicate<T>, Serializable
Annotations
@FunctionalInterface
Imports
java.io.Serializable

A Predicate is a lambda or closure with a boolean result. The method accept should be implemented to indicate the object passed to the method meets the criteria of this Predicate. A Predicate is also known as a Discriminator or Filter.

Method Summary

Modifier and TypeMethod and Description
public boolean
accept(T each)

public default boolean
test(T each)

Implements java.util.function.Predicate.test.

Evaluates this predicate on the given argument.

Inherited from java.util.function.Predicate:
andisEqualnegatenotor

Method Detail

acceptback to summary
public boolean accept(T each)
testback to summary
public default boolean test(T each)

Implements java.util.function.Predicate.test.

Doc from java.util.function.Predicate.test.

Evaluates this predicate on the given argument.

Annotations
@Override