home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / jgl_1_1 / jgl_1_1.exe / src / UnaryPredicate.java < prev    next >
Encoding:
Java Source  |  1996-09-10  |  891 b   |  28 lines

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