EqualityFilter

public final class EqualityFilter<TInput extends Object> implements IFilter<TInput, Unit>(source)

A filter, which only returns a non-null value, when the input is expectedValue.

Parameters

TInput

The type the filter accepts

expectedValue

The value the filter should succeed for

Constructors

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

Functions

Link copied to clipboard
public Unit evaluate(TInput input)

Evaluates the filter with the given value.

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.