Commons-collections already has a Predicate interface, btw: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);
}
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]