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 / PlusString.java < prev    next >
Encoding:
Java Source  |  1997-03-14  |  620 b   |  25 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. /**
  7.  * PlusString is a binary function object that
  8.  * returns the concatenation of the operands as strings.
  9.  * <p>
  10.  * @version 2.0.2
  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.