ContainingFilter

class ContainingFilter<T>(collection: Collection<T>) : Filter<T, Unit> , Iterable<T> (source)

A filter, which only yields a matching result if the given collection contains the input. This filter never skips.

Parameters

T

The type the filter accepts

collection

The collection to check for the input

Constructors

Link copied to clipboard
constructor(collection: Collection<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 operator override fun iterator(): Iterator<T>
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 T>)
Link copied to clipboard