NullGuardFilter

public NullGuardFilter<T, TResult> NullGuardFilter<T extends Any, TResult extends Any>(<Error class: unknown class><TResult> nullResult, <Error class: unknown class><T, TResult> filter)(source)

Parameters

T

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

TResult

The type filter returns

nullResult

The result when the input is null

filter

The filter to evaluate