NegationFilter

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

A filter, which returns the opposite result of the provided filter.

FilterResult.Match and FilterResult.Mismatch are opposites. FilterResult.Skip is the opposite of itself.

Parameters

T

The type the filter accepts

filter

The filter to negate

Constructors

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

Functions

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

Evaluates the filter with the given value.

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