Input Null Guard Filter
class InputNullGuardFilter<TInput, TResult : Any>(inputNullResult: TResult?, filter: IFilter<TInput, TResult>) : IFilter<TInput?, TResult> , Iterable<IFilter<TInput, TResult>> (source)
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
input Null Result
The result when the input is null
filter
The filter to evaluate