All Packages Class Hierarchy This Package Previous Next Index
Class COM.objectspace.jgl.functions.BindFirst
java.lang.Object
|
+----COM.objectspace.jgl.functions.BindFirst
- public final class BindFirst
- extends Object
- implements UnaryFunction
BindFirst is a unary function object that allows you to apply a binary function to
a predefined value and an operand. The reason that it's called BindFirst is that the
predefined value is always used as the 1st parameter to the binary function.
- See Also:
- BindSecond
-
BindFirst(BinaryFunction, Object)
- Construct myself with a binary function object and a predefined value.
-
execute(Object)
- Perform my binary function on the operand using the predefined value as the 1st
parameter and the operand as the 2nd parameter.
BindFirst
public BindFirst(BinaryFunction function,
Object value)
- Construct myself with a binary function object and a predefined value.
- Parameters:
- function - The binary function object.
- value - The object to use as the 1st parameter.
execute
public Object execute(Object object)
- Perform my binary function on the operand using the predefined value as the 1st
parameter and the operand as the 2nd parameter.
- Parameters:
- object - The operand.
- Returns:
- function( value, object )
All Packages Class Hierarchy This Package Previous Next Index