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.
-
SwappedBinaryFunction(BinaryFunction)
- Construct myself with a binary function object.
-
execute(Object, Object)
- Swap the order of operands and return the value of my contained function.
SwappedBinaryFunction
public SwappedBinaryFunction(BinaryFunction function)
- Construct myself with a binary function object.
- Parameters:
- function - The binary function object.
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