ConjunctionFilter

public final class ConjunctionFilter<T extends Object> implements Filter<T, Unit>, Iterable<Filter<T, ? extends Any>>(source)

A filter, which applies the logical AND operation between the given filters and returns the result. Only skips if all sub-filters skip, and only yields match if no sub-filters yield mismatch.

Parameters

T

The type the filter accepts

filters

The sub-filters to evaluate

Constructors

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

Alternative constructor with variable arguments

public ConjunctionFilter<T> ConjunctionFilter<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()