org.joo.libra.Predicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joo-libra Show documentation
Show all versions of joo-libra Show documentation
Java Predicate with SQL-like syntax support
package org.joo.libra;
import org.joo.libra.support.exceptions.PredicateExecutionException;
/**
* Represents a predicate
*
* @author griever
*
*/
public interface Predicate {
/**
* Check if the current predicate is satisfied by given predicate context
*
* @param context
* the context to check against. it should be also passed to child
* predicates if any
* @return true if and only if the current predicate is satisfied by given
* predicate context
* @throws PredicateExecutionException
* if any exception occurred while evaluating the predicate
*/
public boolean satisfiedBy(final PredicateContext context) throws PredicateExecutionException;
}