ConjunctionFilter

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

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

Parameters

TInput

The type the filter accepts

filters

The sub-filters to evaluate

Constructors

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

Alternative constructor with variable arguments

public ConjunctionFilter<TInput> ConjunctionFilter<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