PreProcessorFilter

public final class PreProcessorFilter<TInput extends Object, TSubFilterInput extends Object, TResult extends Object> implements IFilter<TInput, TResult>, Iterable<IFilter<TSubFilterInput, TResult>>(source)

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
public PreProcessorFilter<TInput, TSubFilterInput, TResult> PreProcessorFilter<TInput extends Any, TSubFilterInput extends Any, TResult extends Any>(Function1<TInput, TSubFilterInput> transform, String transformDescription, IFilter<TSubFilterInput, TResult> filter)

Functions

Link copied to clipboard
public TResult evaluate(TInput input)

Evaluates the filter with the given value.

Link copied to clipboard
Link copied to clipboard
public final static PreProcessorFilter<TInput, TSubFilterInput, TResult> nullGuarded<TInput extends Any, TSubFilterInput extends Any, TResult extends Any>(Function1<TInput, TSubFilterInput> transform, String transformDescription, TResult inputNullResult, IFilter<TSubFilterInput, TResult> filter)

Creates a PreProcessorFilter, which doesn't pass null as an input to filter.

Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public String dump()

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

Link copied to clipboard
Link copied to clipboard