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