NegationFilter

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

A filter, which returns null, if filter returns a non-null value, and returns a non-null value, if filter returns null.

Parameters

TInput

The type the filter accepts

filter

The filter to negate

Constructors

Link copied to clipboard
public NegationFilter<TInput> NegationFilter<TInput extends Any>(IFilter<TInput, ?> filter)

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