InputNullGuardFilter

A filter, which forwards evaluation to the given filter, if the input is not null. If the input is null, the filter will return inputNullResult.

Parameters

TInput

The type the given filter accepts. This filter accepts its nullable form

TResult

The type filter returns

inputNullResult

The result when the input is null

filter

The filter to evaluate

Constructors

Link copied to clipboard
constructor(inputNullResult: TResult?, filter: IFilter<TInput, TResult>)

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<TInput, 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
open fun forEach(p0: Consumer<in IFilter<TInput, TResult>>)
Link copied to clipboard