T
- Type processed by the predicatepublic class ContextPredicateAdaptor<T> extends ContextAdaptor<Predicate<T>,T,T> implements Predicate<Context>
Predicate
to be applied to a Context
, based on a single element of the Context
.extract, inner, insert
Constructor and Description |
---|
ContextPredicateAdaptor(Predicate<T> inner,
ContextExtractor<T> extract,
ContextInsertor<T> insert)
Construct with the given options.
|
ContextPredicateAdaptor(Predicate<T> inner,
String both)
Construct with the given predicate.
|
ContextPredicateAdaptor(Predicate<T> inner,
String extract,
String insert)
Construct with the given predicate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
test(Context in)
Tests whether a specific object passes some criteria.
|
public ContextPredicateAdaptor(Predicate<T> inner, ContextExtractor<T> extract, ContextInsertor<T> insert)
inner
- the predicateextract
- the extractorinsert
- the insertorpublic ContextPredicateAdaptor(Predicate<T> 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 ContextPredicateAdaptor(Predicate<T> inner, String both)
inner
- the object being adaptedboth
- the key to extract/insert