package Ġvit . kh ud enko . android . session tracker Ċ Ċ /** Ċ Ġ* ĠA Ġhelper Ġfunction Ġto Ġreduce Ġcode Ġfoot print Ġwhen Ġspecifying Ġ[` IS ession State Transitions Supplier `][ IS ession State Transitions Supplier ] Ċ Ġ* Ġfor Ġ[` Session Tracker `][ Session Tracker ]. Ċ Ġ* Ċ Ġ* Ġ@ param Ġtransitions Ġone Ġor Ġmore Ġinstances Ġof Ġ[` Pair `][ Pair ]< [` Event `][ Event ], Ġ[` List `][ List ]< [` State `][ State ] >> Ġeach Ġcorresponding Ċ Ġ* ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġto Ġa Ġ[` Transition `][ Transition ]. Ċ Ġ* Ġ@ return Ġ[` IS ession State Transitions Supplier `][ IS ession State Transitions Supplier ] Ġinstance Ċ Ġ* Ċ Ġ* Ġ@ see Ġ[ Transition ] Ċ Ġ* Ċ Ġ* Ġ@ param Ġ[ Event ] Ġevent Ġparameter Ġof Ġenum Ġtype . Ċ Ġ* Ġ@ param Ġ[ State ] Ġstate Ġparameter Ġof Ġenum Ġtype . Ċ Ġ*/ Ċ fun Ġ< Event Ġ: ĠEnum < Event >, ĠState Ġ: ĠEnum < State >> Ġsession State Transitions Supplier ( ĊĠĠĠ Ġvar arg Ġtransitions : ĠPair < Event , ĠList < State >> Ċ ): ĠIS ession State Transitions Supplier < Event , ĠState > Ġ{ ĊĠĠĠ Ġreturn Ġtransitions ĊĠĠĠĠĠĠĠ Ġ. map Ġ{ Ġ( event , Ġstate Path ) Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTransition ( event , Ġstate Path . toList ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ. let Ġ{ Ġtransition List Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ ĠIS ession State Transitions Supplier Ġ{ Ġtransition List Ġ} ĊĠĠĠĠĠĠĠ Ġ} Ċ } ĊĊ