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

  1. // Copyright(c) 1996 ObjectSpace, Inc.
  2. // Portions Copyright(c) 1995, 1996 Hewlett-Packard Company.
  3.  
  4. package jgl;
  5.  
  6. /**
  7.  * PlusString is a binary function object that 
  8.  * returns the concatenation of the operands as strings.
  9.  * <p>
  10.  * @version 1.1
  11.  * @author ObjectSpace, Inc.
  12.  */
  13.  
  14. public final class PlusString implements BinaryFunction
  15.   {
  16.   /**
  17.    * Return the concatenation of the two operands.
  18.    * @return first.toString() + second.toString()
  19.    */
  20.   public Object execute( Object first, Object second )
  21.     {
  22.     return first.toString() + second.toString();
  23.     }
  24.   }
  25.