ConjunctionFilter

class ConjunctionFilter<T>(filters: Iterable<Filter<T, out Any>>) : Filter<T, Unit> , Iterable<Filter<T, out Any>> (source)

A filter, which applies the logical AND operation between the given filters and returns the result. Only skips if all sub-filters skip, and only yields match if no sub-filters yield mismatch.

Parameters

T

The type the filter accepts

filters

The sub-filters to evaluate

Constructors

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

Alternative constructor with variable arguments

constructor(filters: Iterable<Filter<T, out Any>>)

Functions

Link copied to clipboard
open override fun evaluate(value: T): FilterResult<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>>