Optional Filter
class OptionalFilter<T, TResult>(nullResult: FilterResult<TResult>, filter: Filter<T, TResult>) : Filter<Optional<T>, TResult> , Iterable<Filter<T, TResult>> (source)
Basically a NullGuardFilter for Java users using Optional.
Parameters
T
The type the given filter accepts
TResult
The type filter returns
null Result
The result when the input is not present
filter
The filter to evaluate