public class HashListMethodExecutor extends Object implements MethodExecutor
MethodExecutor using an first argument as key
to be matched from second argument which is expected to be
a List of List of Objects.
Use case is to use spel expression "list(region,{{'nordic','fin','swe'},{'britain','eng','sco'}})" to partition value in 'region' so that resolved partition value is 'nordic' if any of a 'nordic','fin', or 'swe' is matched. Resolved value will be suffixed with '_list' and default value if there are no matches is 'list'.
| Constructor and Description |
|---|
HashListMethodExecutor() |
public TypedValue execute(EvaluationContext context, Object target, Object... arguments) throws AccessException
execute in interface MethodExecutorAccessException