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