InequalityFilter

public final class InequalityFilter<T extends Object> implements Filter<T, Unit>(source)

A filter, which fails when the given value is unexpectedValue, succeeds otherwise, and never skips.

Parameters

T

The type the filter accepts

unexpectedValue

The value the filter should fail for

Constructors

Link copied to clipboard
public InequalityFilter<T> InequalityFilter<T extends Any>(T unexpectedValue)

Functions

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

Evaluates the filter with the given value.

Link copied to clipboard
public String toString()