PreProcessorFilter

A pre-processor filter, which applies a transform to the value before evaluating the sub-filter on it. For more advanced control over invoking filter, please use an arrow function.

Parameters

TSource

The type this filter accepts

TFilter

The type the other filter accepts

TResult

the type the filter returns

transform

The transform to apply to the value in evaluate before evaluating filter

filter

The sub-filter to evaluate

See also

Constructors

Link copied to clipboard
constructor(transform: (TSource) -> TFilter, filter: Filter<TFilter, TResult>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun evaluate(value: TSource): FilterResult<out TResult>

Evaluates the filter with the given value.

Link copied to clipboard
open operator override fun iterator(): Iterator<Filter<TFilter, TResult>>
Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard
fun Filter<*, *>.dump(): String

Formats a filter chain as a tree with ASCII characters, and returns the formatted string.

Link copied to clipboard
open fun forEach(p0: Consumer<in Filter<TFilter, TResult>>)
Link copied to clipboard