public class RecursiveEvaluation extends Object implements NullaryFunction<Object>
functions
. If the NullaryFunction
returns another function of type functionType
, that function
is executed. Functions are executed until a non function value or a
function of a type other than that expected is returned.Constructor and Description |
---|
RecursiveEvaluation(NullaryFunction<?> function)
Create a new RecursiveEvaluation.
|
RecursiveEvaluation(NullaryFunction<?> function,
Class<?> functionType)
Create a new RecursiveEvaluation.
|
public RecursiveEvaluation(NullaryFunction<?> function)
function
.function
- initial, potentially recursive NullaryFunctionpublic RecursiveEvaluation(NullaryFunction<?> function, Class<?> functionType)
function
- initial, potentially recursive NullaryFunctionfunctionType
- as long as result is an instance, keep processing.public final Object evaluate()
evaluate
in interface NullaryFunction<Object>
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.