InequalityFilter

class InequalityFilter<T>(unexpectedValue: T) : 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
constructor(unexpectedValue: T)

Functions

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

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

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