Conditional Filter
public final class ConditionalFilter<T extends Object, TResult extends Object> implements Filter<T, TResult>, Iterable<Filter<T, TResult>>(source)
A filter, which forwards evaluation to the given filter, if the check function returns true
. Otherwise, the result will be falseResult.
Parameters
T
The type the given filter accepts
TResult
The type filter returns
check
The function to decide if the evaluation should be forwarded to filter or return falseResult
false Result
The result when the input is false
filter
The filter to evaluate
Constructors
Link copied to clipboard
public ConditionalFilter<T, TResult> ConditionalFilter<T extends Any, TResult extends Any>(Function1<T, Boolean> check, FilterResult<TResult> falseResult, Filter<T, TResult> filter)