| JGL - The Generic Collection Library for Java |
All Packages Class Hierarchy This Package Previous Next Index
Class com.objectspace.jgl.functions.UnaryCompose
java.lang.Object
|
+----com.objectspace.jgl.functions.UnaryCompose
- public final class UnaryCompose
- extends Object
- implements UnaryFunction
UnaryCompose is a unary function object that returns the result of executing
two operations in a specific sequence.
- See Also:
- BinaryCompose
-
UnaryCompose(UnaryFunction, UnaryFunction)
- Construct myself with two unary function objects.
-
execute(Object)
- Perform my second unary function on the operand and then return the result of applying
my first unary function object to this result.
UnaryCompose
public UnaryCompose(UnaryFunction function1,
UnaryFunction function2)
- Construct myself with two unary function objects.
- Parameters:
- function1 - The first unary function object.
- function2 - The second unary function object.
execute
public Object execute(Object object)
- Perform my second unary function on the operand and then return the result of applying
my first unary function object to this result.
- Parameters:
- object - The operand.
- Returns:
- function1( function2( object ) )
All Packages Class Hierarchy This Package Previous Next Index