1 package uk.co.jezuk.mango; 2 3 /** 4 * A <code>UnaryFunction</code> describes a function which takes one argument - <code>fn(x)</code>. 5 * It returns some <code>Object</code>, and may return the same object or different objects for 6 * each invocation, even given the same argument. It can refer to local state, perform disk reads or writes, or whatever. 7 * @author Jez Higgins, jez@jezuk.co.uk 8 * @version $Id: UnaryFunction.java 22 2002-04-08 13:09:28Z jez $ 9 */ 10 public interface UnaryFunction 11 { 12 abstract public Object fn(Object x); 13 } // UnaryFunction 14 15