Package | Description |
---|---|
agi.foundation |
Contains commonly used types.
|
Modifier and Type | Method and Description |
---|---|
static <TEvaluator,TParameter1,TParameter2,TParameter3,TParameter4> |
EvaluatorGroup.Callback4.of(EvaluatorGroup.Callback4.Function<TEvaluator,TParameter1,TParameter2,TParameter3,TParameter4> f)
Create a delegate for the given interface.
|
static <TEvaluator,TParameter1,TParameter2,TParameter3,TParameter4> |
EvaluatorGroup.Callback4.of(EvaluatorGroup.Callback4.Function<TEvaluator,TParameter1,TParameter2,TParameter3,TParameter4> f,
Class<?> targetClass,
String methodName,
Class<?>... methodParameterClasses)
Create a delegate for the given interface.
|
static <TEvaluator,TParameter1,TParameter2,TParameter3,TParameter4> |
EvaluatorGroup.Callback4.of(EvaluatorGroup.Callback4.Function<TEvaluator,TParameter1,TParameter2,TParameter3,TParameter4> f,
Object targetObject,
String methodName,
Class<?>... methodParameterClasses)
Create a delegate for the given interface.
|
Modifier and Type | Method and Description |
---|---|
<TResult,TParameter1,TParameter2,TParameter3,TParameter4> |
EvaluatorGroup.callAndMemoize(EvaluatorGroup.Callback4<TResult,TParameter1,TParameter2,TParameter3,TParameter4> callback,
TParameter1 parameter1,
TParameter2 parameter2,
TParameter3 parameter3,
TParameter4 parameter4)
Optimizes calls to a
callback that is expected to be called multiple times so that future calls
with the same parameters return a cached result rather than actually invoking the callback again. |
<TEvaluator extends IEvaluator,TParameter1,TParameter2,TParameter3,TParameter4> |
EvaluatorGroup.createEvaluator(EvaluatorGroup.Callback4<TEvaluator,TParameter1,TParameter2,TParameter3,TParameter4> callback,
TParameter1 parameter1,
TParameter2 parameter2,
TParameter3 parameter3,
TParameter4 parameter4)
Creates an evaluator in the context of this evaluator group by invoking a callback, if the
evaluator does not already exist in the group.
|