EqualityFilter

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

Functions

Link copied to clipboard
open override fun evaluate(input: TInput): Unit?

Evaluates the filter with the given value.

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

Inherited functions

Link copied to clipboard
open fun dump(): String

Formats the current filter as a tree, and returns the formatted string.