1 package uk.co.jezuk.mango; 2 3 /** 4 * A <code>Predicate</code> is a special form of a <code>UnaryFunction</code>, whose result represents the 5 * truth or otherwise of some condition. 6 * <br> 7 * Returns <code>true</code> if the condition the Predicate tests for is satisfied, <code>false</code> otherwise. 8 * @author Jez Higgins, jez@jezuk.co.uk 9 * @version $Id: Predicate.java 24 2002-04-08 13:44:32Z jez $ 10 */ 11 public interface Predicate 12 { 13 abstract public boolean test(Object x); 14 } // Predicate 15 16