InputType
- The type of the input the evaluator can use.OutputType
- The type of the output the evaluator will produce.@CodeReview(reviewer="Kevin R. Dixon",date="2008-02-08",changesNeeded=false,comments="Looks fine.") @CodeReview(reviewer="Jonathan McClain",date="2006-05-16",changesNeeded=false,comments="Interface looks good.") public interface Evaluator<InputType,OutputType>
Evaluator
interface is a general interface to a function
that can take an input and produce an output. It can be treated as a either
a means of creating simple "delegate" type objects in Java or it can be
treated as a "black box" component to provide some functionality.StatefulEvaluator
Modifier and Type | Method and Description |
---|---|
OutputType |
evaluate(InputType input)
Evaluates the function on the given input and returns the output.
|
OutputType evaluate(InputType input)
input
- The input to evaluate.