Tom Drake wrote:

I've condensed the UnaryPredicate interface here. It provides both a boolean
return and a context parameter.

package org.apache.commons.functor;

public interface UnaryPredicate {
boolean test(Object obj);

}


Commons-collections already has a Predicate interface, btw:


org.apache.commons.collections.Predicate


|boolean| |*evaluate <http://jakarta.apache.org/commons/collections/api/org/apache/commons/collections/Predicate.html#evaluate%28java.lang.Object%29>*(Object <http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html> input)|


Leonardo



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to