Package | Description |
---|---|
agi.foundation |
Contains commonly used types.
|
Modifier and Type | Method and Description |
---|---|
static <TEvaluator,TParameter1,TParameter2> |
EvaluatorGroup.Callback2.of(EvaluatorGroup.Callback2.Function<TEvaluator,TParameter1,TParameter2> f)
Create a delegate for the given interface.
|
static <TEvaluator,TParameter1,TParameter2> |
EvaluatorGroup.Callback2.of(EvaluatorGroup.Callback2.Function<TEvaluator,TParameter1,TParameter2> f,
Class<?> targetClass,
String methodName,
Class<?>... methodParameterClasses)
Create a delegate for the given interface.
|
static <TEvaluator,TParameter1,TParameter2> |
EvaluatorGroup.Callback2.of(EvaluatorGroup.Callback2.Function<TEvaluator,TParameter1,TParameter2> f,
Object targetObject,
String methodName,
Class<?>... methodParameterClasses)
Create a delegate for the given interface.
|
Modifier and Type | Method and Description |
---|---|
<TResult,TParameter1,TParameter2> |
EvaluatorGroup.callAndMemoize(EvaluatorGroup.Callback2<TResult,TParameter1,TParameter2> callback,
TParameter1 parameter1,
TParameter2 parameter2)
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> |
EvaluatorGroup.createEvaluator(EvaluatorGroup.Callback2<TEvaluator,TParameter1,TParameter2> callback,
TParameter1 parameter1,
TParameter2 parameter2)
Creates an evaluator in the context of this evaluator group by invoking a callback, if the
evaluator does not already exist in the group.
|