EqualityFilter

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

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

Parameters

T

The type the filter accepts

expectedValue

The value the filter should succeed for

Constructors

Link copied to clipboard
public EqualityFilter<T> EqualityFilter<T extends Any>(T expectedValue)

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()