PostProcessorFilter

public PostProcessorFilter<T, TFilterResult, TResult> PostProcessorFilter<T extends Any, TFilterResult extends Any, TResult extends Any>(Filter<T, ? extends TFilterResult> filter, TResult result)(source)

Creates a new post-processor filter by specifying FilterResult.Match.result.

Parameters

filter

The sub-filter to evaluate

result

The (constant) result of the transform function


public PostProcessorFilter<T, TFilterResult, TResult> PostProcessorFilter<T extends Any, TFilterResult extends Any, TResult extends Any>(Filter<T, ? extends TFilterResult> filter, Function2<T, FilterResult<? extends TFilterResult>, FilterResult<? extends TResult>> transform)(source)

Parameters

T

The type the filter accepts

TFilterResult

The type the sub-filter's returns

TResult

The type the filter returns

filter

The sub-filter to evaluate

transform

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