public class HashMethodExecutor extends Object implements MethodExecutor
MethodExecutor using an first argument as an
Object to get its hashcode and second argument expected to
be an Integer to calculate a simple bucket name.
Spel expression "hash(region,2)" would create either key
"0_hash" or "1_hash". Using a bucketsize 0 results
an AccessException.
| Constructor and Description |
|---|
HashMethodExecutor() |
public TypedValue execute(EvaluationContext context, Object target, Object... arguments) throws AccessException
execute in interface MethodExecutorAccessExceptionpublic static String hash(int arg1, int arg2)