All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.joo.libra.Predicate Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy