toggle menu
hexagon
3.7.2
jvm
switch theme
search in API
handlers
/
com.hexagonkt.handlers
/
ChainHandler
Chain
Handler
data
class
ChainHandler
<
T
:
Any
>
(
val
handlers
:
List
<
Handler
<
T
>
>
,
val
predicate
:
(
Context
<
T
>
)
->
Boolean
=
{ true }
)
:
Handler
<
T
>
Members
Constructors
Chain
Handler
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
callback
Link copied to clipboard
open
override
val
callback
:
(
Context
<
T
>
)
->
Context
<
T
>
handlers
Link copied to clipboard
val
handlers
:
List
<
Handler
<
T
>
>
predicate
Link copied to clipboard
open
override
val
predicate
:
(
Context
<
T
>
)
->
Boolean
Functions
process
Link copied to clipboard
open
override
fun
process
(
context
:
Context
<
T
>
)
:
Context
<
T
>