home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-03-14 | 1.1 KB | 32 lines |
- // Copyright(c) 1996,1997 ObjectSpace, Inc.
- // Portions Copyright(c) 1995, 1996 Hewlett-Packard Company.
-
- package COM.objectspace.jgl;
-
- import java.io.Serializable;
-
- /**
- * BinaryFunction is the interface that must be implemented by all binary function objects.
- * Every BinaryFunction object must define a single method called execute() that takes
- * two objects as its arguments and returns an object. BinaryFunction objects are often
- * built to operate on a specific kind of argument and must therefore cast the input
- * parameters in order to process them.
- * <p>
- * @see COM.objectspace.jgl.UnaryPredicate
- * @see COM.objectspace.jgl.BinaryPredicate
- * @see COM.objectspace.jgl.UnaryFunction
- * @version 2.0.2
- * @author ObjectSpace, Inc.
- */
-
- public interface BinaryFunction extends Serializable
- {
- /**
- * Return the result of executing with two Object arguments.
- * @param first The first object operand.
- * @param second The second object operand.
- * @return The result of processing the input parameters.
- */
- Object execute( Object first, Object second );
- }
-