EqualityFilter

class EqualityFilter<T>(expectedValue: T) : 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
constructor(expectedValue: T)

Functions

Link copied to clipboard
open override fun evaluate(value: T): FilterResult<out Unit>

Evaluates the filter with the given value.

Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard
fun Filter<*, *>.dump(): String

Formats a filter chain as a tree with ASCII characters, and returns the formatted string.