public class HashListMethodExecutor extends java.lang.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() |
| Modifier and Type | Method and Description |
|---|---|
TypedValue |
execute(EvaluationContext context,
java.lang.Object target,
java.lang.Object... arguments) |
static java.lang.String |
list(java.lang.String arg1,
java.util.List<java.lang.Object> arg2) |
public TypedValue execute(EvaluationContext context, java.lang.Object target, java.lang.Object... arguments) throws AccessException
execute in interface MethodExecutorAccessExceptionpublic static java.lang.String list(java.lang.String arg1,
java.util.List<java.lang.Object> arg2)