PostProcessorFilter

class PostProcessorFilter<T, TFilterResult, TResult : Any>(filter: <Error class: unknown class><T, out TFilterResult>, transform: (input: T, <Error class: unknown class><out TFilterResult>) -> <Error class: unknown class><out TResult>) : Iterable<<Error class: unknown class><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

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

See also

Constructors

Link copied to clipboard
constructor(filter: <Error class: unknown class><T, out TFilterResult>, result: TResult)

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

constructor(filter: <Error class: unknown class><T, out TFilterResult>, transform: (input: T, <Error class: unknown class><out TFilterResult>) -> <Error class: unknown class><out TResult>)

Functions

Link copied to clipboard
open fun evaluate(value: T): <Error class: unknown class><out TResult>
Link copied to clipboard
open operator override fun iterator(): Iterator<<Error class: unknown class><T, out TFilterResult>>
Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard
open fun forEach(p0: Consumer<in <Error class: unknown class><T, out TFilterResult>>)
Link copied to clipboard
open fun spliterator(): Spliterator<<Error class: unknown class><T, out TFilterResult>>