home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Extras / OSpace / jgl.exe / jgl_2_0 / src / COM / objectspace / jgl / UnaryFunction.java < prev    next >
Encoding:
Java Source  |  1997-03-14  |  1.0 KB  |  31 lines

  1. // Copyright(c) 1996,1997 ObjectSpace, Inc.
  2. // Portions Copyright(c) 1995, 1996 Hewlett-Packard Company.
  3.  
  4. package COM.objectspace.jgl;
  5.  
  6. import java.io.Serializable;
  7.  
  8. /**
  9.  * UnaryFunction is the interface that must be implemented by all unary function objects.
  10.  * Every UnaryFunction object must define a single method called execute() that takes
  11.  * a single object as its argument and returns an object. UnaryFunction objects are often
  12.  * built to operate on a specific kind of object and must therefore cast the input parameter
  13.  * in order to process it.
  14.  * <p>
  15.  * @see COM.objectspace.jgl.UnaryPredicate
  16.  * @see COM.objectspace.jgl.BinaryPredicate
  17.  * @see COM.objectspace.jgl.BinaryFunction
  18.  * @version 2.0.2
  19.  * @author ObjectSpace, Inc.
  20.  */
  21.  
  22. public interface UnaryFunction extends Serializable
  23.   {
  24.   /**
  25.    * Return the result of executing with a single Object.
  26.    * @param object The object to process.
  27.    * @return The result of processing the input Object.
  28.    */
  29.   Object execute( Object object );
  30.   }
  31.