emo / me.eater.emo.utils / StaticRouter

StaticRouter

class StaticRouter<C> : Router<C>

Router that always returns the same result

Parameters

step - The next step that this router should return

Constructors

<init>

StaticRouter(step: String?)

Router that always returns the same result

Functions

route

fun route(context: C): String?

Function that returns the next step, or null if this is supposed to be the last step