NegationFilter

class NegationFilter<T>(filter: Filter<T, out Any>) : Filter<T, Unit> , Iterable<Filter<T, out Any>> (source)

A filter, which returns the opposite result of the provided filter.

FilterResult.Match and FilterResult.Mismatch are opposites. FilterResult.Skip is the opposite of itself.

Parameters

T

The type the filter accepts

filter

The filter to negate

Constructors

Link copied to clipboard
constructor(filter: Filter<T, out Any>)

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 operator override fun iterator(): Iterator<Filter<T, out Any>>
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.

Link copied to clipboard
open fun forEach(p0: Consumer<in Filter<T, out Any>>)
Link copied to clipboard
open fun spliterator(): Spliterator<Filter<T, out Any>>