mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-02-16 19:52:03 +00:00
Revert "HandlersRegistrar now is open"
This reverts commit 3ac56dcfd3ca2a0fa6dd5403a9afb7a93b84b348.
This commit is contained in:
parent
d85b3d0da9
commit
ab112aa7a4
@ -9,9 +9,9 @@ import kotlinx.coroutines.*
|
|||||||
* @param defaultHandler If presented will be used in case where there are no any layer from [layers] with any handler
|
* @param defaultHandler If presented will be used in case where there are no any layer from [layers] with any handler
|
||||||
* to handle data inside of [handle] method
|
* to handle data inside of [handle] method
|
||||||
*/
|
*/
|
||||||
open class HandlersRegistrar<T>(
|
class HandlersRegistrar<T>(
|
||||||
protected val layers: Iterable<Iterable<Handler<T>>>,
|
private val layers: Iterable<Iterable<Handler<T>>>,
|
||||||
protected val defaultHandler: Handler<T>? = null
|
private val defaultHandler: Handler<T>? = null
|
||||||
) : Handler<T> {
|
) : Handler<T> {
|
||||||
/**
|
/**
|
||||||
* Will iterate over the [layers]. On each layer (in face each [Iterable] of [Handler]s) ALL the handlers will be
|
* Will iterate over the [layers]. On each layer (in face each [Iterable] of [Handler]s) ALL the handlers will be
|
||||||
|
Loading…
x
Reference in New Issue
Block a user