All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.functions.SwappedBinaryFunction

java.lang.Object
   |
   +----COM.objectspace.jgl.functions.SwappedBinaryFunction

public final class SwappedBinaryFunction
extends Object
implements BinaryFunction
SwappedBinaryFunction is a binary function that returns the result of applying its operands to a BinaryFunction in the opposite order they were received.


Constructor Index

 o SwappedBinaryFunction(BinaryFunction)
Construct myself with a binary function object.

Method Index

 o execute(Object, Object)
Swap the order of operands and return the value of my contained function.

Constructors

 o SwappedBinaryFunction
 public SwappedBinaryFunction(BinaryFunction function)
Construct myself with a binary function object.

Parameters:
function - The binary function object.

Methods

 o execute
 public Object execute(Object first,
                       Object second)
Swap the order of operands and return the value of my contained function.

Parameters:
first - The first operand.
second - The second operand.
Returns:
function.execute( second, first )

All Packages  Class Hierarchy  This Package  Previous  Next  Index