IFilter

interface IFilter<T, TResult>(source)

Base class for filtering. If the filter evaluates sub-filters, it should implement Iterable to show them in the dumped tree.

Parameters

<T>

The type the filter accepts

<TResult>

The type the filter returns

Inheritors

Types

Link copied to clipboard
abstract class Result<T>
Represents a filter result.

Functions

Link copied to clipboard
@NotNull
open fun createTree(): @NotNull Tree.Node
Link copied to clipboard
@NotNull
abstract fun evaluate(value: T): @NotNull IFilter.Result<out TResult>
Evaluates the filter with the given value.