package agg.util.csp; /** * UnaryPredicate is the interface that must be implemented by all unary predicate objects. * Every UnaryPredicate object must define a single method called execute() that takes * a single object as its argument and returns a boolean. UnaryPredicate objects are often * built to operate on a specific kind of object and must therefore cast the input parameter * in order to process it. */ public interface UnaryPredicate { /** * Return the result of executing with a single Object. * @param object The object to process. * @return The result of processing the input Object. */ boolean execute( Object object ); }