PreProcessorFilter

A pre-processor filter, which applies a transform to the value before evaluating the sub-filter on it.

Parameters

TInput

The type this filter accepts

TSubFilterInput

The type the sub-filter accepts

TResult

the type the filter returns

transform

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

transformDescription

Textual description of transform for better dump readability

filter

The sub-filter to evaluate

See also

Constructors

Link copied to clipboard
constructor(transform: (TInput) -> TSubFilterInput, transformDescription: String, filter: IFilter<TSubFilterInput, TResult>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun evaluate(input: TInput): TResult?

Evaluates the filter with the given value.

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

Inherited functions

Link copied to clipboard
open fun dump(): String

Formats the current filter as a tree, and returns the formatted string.

Link copied to clipboard
Link copied to clipboard