| JGL - The Generic Collection Library for Java |
All Packages Class Hierarchy This Package Previous Next Index
Interface com.objectspace.jgl.BinaryFunction
- public interface BinaryFunction
- extends Serializable
BinaryFunction is the interface that must be implemented by all binary function objects.
Every BinaryFunction object must define a single method called execute() that takes
two objects as its arguments and returns an object. BinaryFunction objects are often
built to operate on a specific kind of argument and must therefore cast the input
parameters in order to process them.
- See Also:
- UnaryPredicate, BinaryPredicate, UnaryFunction
-
serialVersionUID
-
-
execute(Object, Object)
- Return the result of executing with two Object arguments.
serialVersionUID
public static final long serialVersionUID
execute
public abstract Object execute(Object first,
Object second)
- Return the result of executing with two Object arguments.
- Parameters:
- first - The first object operand.
- second - The second object operand.
- Returns:
- The result of processing the input parameters.
All Packages Class Hierarchy This Package Previous Next Index