PostProcessorFilter

public final class PostProcessorFilter<T extends Object, TFilterResult extends Object, TResult extends Object> implements Iterable<<Error class: unknown class><T, ? extends 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
public PostProcessorFilter<T, TFilterResult, TResult> PostProcessorFilter<T extends Any, TFilterResult extends Any, TResult extends Any>(<Error class: unknown class><T, ? extends TFilterResult> filter, TResult result)

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

public PostProcessorFilter<T, TFilterResult, TResult> PostProcessorFilter<T extends Any, TFilterResult extends Any, TResult extends Any>(<Error class: unknown class><T, ? extends TFilterResult> filter, Function2<T, <Error class: unknown class><? extends TFilterResult>, <Error class: unknown class><? extends TResult>> transform)

Functions

Link copied to clipboard
public <Error class: unknown class><? extends TResult> evaluate(T value)
Link copied to clipboard
public Iterator<<Error class: unknown class><T, ? extends TFilterResult>> iterator()
Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public Unit forEach(Consumer<? super <Error class: unknown class><T, ? extends TFilterResult>> p0)
Link copied to clipboard
public Spliterator<<Error class: unknown class><T, ? extends TFilterResult>> spliterator()