null Guarded
fun <TSource, TFilter, TResult> nullGuarded(transform: (TSource) -> TFilter?, nullResult: FilterResult<TResult>, filter: Filter<TFilter, TResult>): PreProcessorFilter<TSource, TFilter?, TResult>(source)
Creates a PreProcessorFilter, which doesn't pass null as an input to filter.
Parameters
TSource
The type PreProcessorFilter filter accepts
TFilter
The type filter accepts
TResult
the type filter returns
transform
The transform to pass to PreProcessorFilter.transform
null Result
The result to pass to NullGuardFilter.nullResult
filter
The sub-filter to evaluate