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

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