IN - Type of items in the listpublic class ContextListFilter<IN> extends ContextAdaptor<Predicate<IN>,List<IN>,List<IN>> implements Function<Context,Context>
Context entry using a
predicateextract, inner, insert| Constructor and Description |
|---|
ContextListFilter(Predicate<IN> inner,
ContextExtractor<List<IN>> extract,
ContextInsertor<List<IN>> insert)
Construct with the given options.
|
ContextListFilter(Predicate<IN> inner,
String both)
Construct with the given predicate.
|
ContextListFilter(Predicate<IN> inner,
String extract,
String insert)
Construct with the given predicate.
|
| Modifier and Type | Method and Description |
|---|---|
Context |
apply(Context in)
Apply the function to the input argument and return the result.
|
public ContextListFilter(Predicate<IN> inner, ContextExtractor<List<IN>> extract, ContextInsertor<List<IN>> insert)
inner - the predicateextract - the extractorinsert - the insertorpublic ContextListFilter(Predicate<IN> inner, String extract, String insert)
inner - the predicateextract - the key to extract from the context to produce the input for
the objectinsert - the key to insert with the the output for the objectpublic ContextListFilter(Predicate<IN> inner, String both)
inner - the predicateboth - the key to extract/insert