PostProcessorFilter

constructor(filter: IFilter<TInput, out TSubFilterResult>, result: TResult)(source)

Creates a new post-processor filter by specifying its return value.

Parameters

filter

The sub-filter to evaluate

result

The (constant) return value of the transform function


constructor(filter: IFilter<TInput, out TSubFilterResult>, transformDescription: String, transform: (input: TInput, result: TSubFilterResult?) -> TResult?)(source)

Parameters

TInput

The type the filter accepts

TSubFilterResult

The type the sub-filter's returns

TResult

The type the filter returns

filter

The sub-filter to evaluate

transformDescription

Textual description of transform for better dump readability

transform

The function, which transforms the result of evaluate. Its input is both the input of evaluate and the result of filter