T - Type of object being extracted.public class ContextTransform<T> extends Object implements Function<Context,T>
| Constructor and Description |
|---|
ContextTransform(ContextExtractor<T> extract)
Construct with the given extractor
|
ContextTransform(String key)
Construct with a
KeyContextExtractor using the given key. |
| Modifier and Type | Method and Description |
|---|---|
T |
apply(Context in)
Apply the function to the input argument and return the result.
|
public ContextTransform(ContextExtractor<T> extract)
extract - the extractorpublic ContextTransform(String key)
KeyContextExtractor using the given key.key - the key to extract (a KeyContextExtractor is used)