ChainHandler

data class ChainHandler<T : Any>(val handlers: List<Handler<T>>, val predicate: (Context<T>) -> Boolean = { true }) : Handler<T>

Constructors

Link copied to clipboard
constructor(filter: (Context<T>) -> Boolean, vararg handlers: Handler<T>)
constructor(vararg handlers: Handler<T>)
constructor(handlers: List<Handler<T>>, predicate: (Context<T>) -> Boolean = { true })

Properties

Link copied to clipboard
open override val callback: (Context<T>) -> Context<T>
Link copied to clipboard
val handlers: List<Handler<T>>
Link copied to clipboard
open override val predicate: (Context<T>) -> Boolean

Functions

Link copied to clipboard
open override fun process(context: Context<T>): Context<T>