public interface EventContext
TypeCoercer
,
ValueEncoder
Modifier and Type | Method and Description |
---|---|
<T> T |
get(Class<T> desiredType,
int index)
Extracts a parameter value and coerces or decodes it to the desired type.
|
int |
getCount()
Returns the number of parameter values that can be extracted.
|
String[] |
toStrings()
Extracts the value of each context value as a string.
|
int getCount()
<T> T get(Class<T> desiredType, int index)
desiredType
- the type of value requiredindex
- identifies which parameter value to extractRuntimeException
- if the value can't be converted or the index is out of range5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.