Disjunction Filter
public final class DisjunctionFilter<T extends Object> implements Filter<T, Unit>, Iterable<Filter<T, ? extends Any>>(source)
A filter, which applies the logical OR operation between the given filters and returns the result. Only skips if all sub-filters skip, and only yields mismatch if no sub-filters yield match.
This filter yields the first non-skipping match result of all sub-filters if any, or the first non-skipping mismatch result of all sub-filters if any, or a new skipping filter result (when all sub-filters skip)
Parameters
T
The type the filter accepts
filters
The sub-filters to evaluate
Constructors
Link copied to clipboard
Alternative constructor with variable arguments
public DisjunctionFilter<T> DisjunctionFilter<T extends Any>(Iterable<Filter<T, ? extends Object>> filters)