IN - OUT - public class ContextListTransformFunction<IN,OUT> extends Object implements Function<List<Context>,OUT>
List of Context instances to a List of IN
and immediately hand this list to an internal function. Return this
function's application on the klist as stream| Constructor and Description |
|---|
ContextListTransformFunction(ContextExtractor<IN> extract,
Function<List<IN>,OUT> inner) |
ContextListTransformFunction(String key,
Function<List<IN>,OUT> inner) |
| Modifier and Type | Method and Description |
|---|---|
OUT |
apply(List<Context> in)
Apply the function to the input argument and return the result.
|
public ContextListTransformFunction(ContextExtractor<IN> extract, Function<List<IN>,OUT> inner)
extract - the extraction strategyinner - the function applied to the transformed listpublic ContextListTransformFunction(String key, Function<List<IN>,OUT> inner)
key - the key to extract (a KeyContextExtractor is used)inner - function applied to the transformed list