Input Null Guard Filter
public final class InputNullGuardFilter<TInput extends Object, TResult extends Object> implements 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
Constructors
Link copied to clipboard
public InputNullGuardFilter<TInput, TResult> InputNullGuardFilter<TInput extends Any, TResult extends Any>(TResult inputNullResult, IFilter<TInput, TResult> filter)