Post Processor Filter
class PostProcessorFilter<T, TFilterResult, TResult>(filter: Filter<T, out TFilterResult>, transform: (input: T, result: FilterResult<out TFilterResult>) -> FilterResult<out TResult>) : Filter<T, TResult> , Iterable<Filter<T, out TFilterResult>> (source)
A post-processor filter, which enables the output of the given sub-filter to be changed.
Useful, when the sub-filter doesn't yield a result (like ConjunctionFilter or DisjunctionFilter)
Parameters
T
The type the filter accepts
TFilter Result
The type the sub-filter's returns
TResult
The type the filter returns
filter
The sub-filter to evaluate
See also
Constructors
Link copied to clipboard
Creates a new post-processor filter by specifying FilterResult.Match.result.
constructor(filter: Filter<T, out TFilterResult>, transform: (input: T, result: FilterResult<out TFilterResult>) -> FilterResult<out TResult>)