home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-09-10 | 598 b | 25 lines |
- // Copyright(c) 1996 ObjectSpace, Inc.
- // Portions Copyright(c) 1995, 1996 Hewlett-Packard Company.
-
- package jgl;
-
- /**
- * PlusString is a binary function object that
- * returns the concatenation of the operands as strings.
- * <p>
- * @version 1.1
- * @author ObjectSpace, Inc.
- */
-
- public final class PlusString implements BinaryFunction
- {
- /**
- * Return the concatenation of the two operands.
- * @return first.toString() + second.toString()
- */
- public Object execute( Object first, Object second )
- {
- return first.toString() + second.toString();
- }
- }
-