Class jgl.PlusInteger
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jgl.PlusInteger

java.lang.Object
   |
   +----jgl.PlusInteger

public final class PlusInteger
extends Object
implements BinaryFunction
PlusInteger is a binary function object that assumes that both of its operands are instances of Integer and returns the first operand added to the second operand.


Constructor Index

 o PlusInteger()

Method Index

 o execute(Object, Object)
Return the result of adding the first operand to the second operand.

Constructors

 o PlusInteger
  public PlusInteger()

Methods

 o execute
  public Object execute(Object first,
                        Object second)
Return the result of adding the first operand to the second operand.
Parameters:
first - The first operand, which must be an instance of Integer.
second - The second operand, which must be an instance of Integer.
Returns:
first + second

All Packages  Class Hierarchy  This Package  Previous  Next  Index