Optional Filter
public final class OptionalFilter<T extends Object, TResult extends Object> implements 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
Constructors
Link copied to clipboard
public OptionalFilter<T, TResult> OptionalFilter<T extends Any, TResult extends Any>(FilterResult<TResult> nullResult, Filter<T, TResult> filter)