DisjunctionFilter

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.

Parameters

T

The type the filter accepts

filters

The sub-filters to evaluate

Constructors

Link copied to clipboard
public DisjunctionFilter<T> DisjunctionFilter<T extends Any>(Filter<T, ? extends Object> filters)

Alternative constructor with variable arguments

public DisjunctionFilter<T> DisjunctionFilter<T extends Any>(Iterable<Filter<T, ? extends Object>> filters)

Functions

Link copied to clipboard
public FilterResult<Unit> evaluate(T value)

Evaluates the filter with the given value.

Link copied to clipboard
public Iterator<Filter<T, ? extends Object>> iterator()
Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public final String dump()

Formats a filter chain as a tree with ASCII characters, and returns the formatted string.

Link copied to clipboard
public Unit forEach(Consumer<? super Filter<T, ? extends Object>> p0)
Link copied to clipboard
public Spliterator<Filter<T, ? extends Object>> spliterator()