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