DisjunctionFilter

public final class DisjunctionFilter<TInput extends Object> implements IFilter<TInput, Unit>, Iterable<IFilter<TInput, ?>>(source)

A filter, which applies the logical OR operation between the given filters and returns a non-null value, if any of the sub-filters returned a non-null value, or null, if all the sub-filters returned null.

Parameters

TInput

The type the filter accepts

filters

The sub-filters to evaluate

Constructors

Link copied to clipboard
public DisjunctionFilter<TInput> DisjunctionFilter<TInput extends Any>(IFilter<TInput, ?> filters)

Alternative constructor with variable arguments

public DisjunctionFilter<TInput> DisjunctionFilter<TInput extends Any>(Collection<IFilter<TInput, ?>> filters)

Functions

Link copied to clipboard
public Unit evaluate(TInput input)

Evaluates the filter with the given value.

Link copied to clipboard
Link copied to clipboard
public String toString()

Inherited functions

Link copied to clipboard
public String dump()

Formats the current filter as a tree, and returns the formatted string.

Link copied to clipboard
public Unit forEach(Consumer<? super IFilter<TInput, ?>> p0)
Link copied to clipboard