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

Field Summary
static ILambda NullObject
          Singleton null object instance of ILambda.
 
Method Summary
 Object apply(Object arg)
          Performs some computation with a given input Object.
 

Field Detail

NullObject

static final ILambda NullObject
Singleton null object instance of ILambda. The apply method simply returns the argument.

Method Detail

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.