util
Interface ILambda
public interface ILambda
Represents the abstract lambda expression whose sole purpose in life is to
evaluate itself on an input and return the result of the evaluation.
- Author:
- Dung X. Nguyen
Method Summary |
Object |
apply(Object arg)
Performs some computation with a given input Object. |
NullObject
static final ILambda NullObject
- Singleton null object instance of ILambda.
The apply method simply returns the argument.
apply
Object apply(Object arg)
- Performs some computation with a given input Object.
Returns an Object as the result.
- Parameters:
arg
- input object for this ILambda object.
- Returns:
- an output object resulting from evaluating the lambda expression on the input arg.