package Ġbg . dab ul g aria . t ib ro ish . presentation . ui . common . section picker Ċ Ċ import Ġandroid . content . Context Ċ import Ġbg . dab ul g aria . t ib ro ish . domain . locations .* Ċ import Ġbg . dab ul g aria . t ib ro ish . presentation . ui . common . Filter able Array Adapter ĊĊ Ċ class ĠCount ries Adapter ( context : ĠContext , Ġobjects : ĠList < Country Remote >) ĊĠĠĠ Ġ: ĠFilter able Array Adapter < Country Remote >( context , Ġobjects . to Mutable List ()) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Formatted Text For Item ( item : ĠCountry Remote ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġitem . name ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdoes Item Match Constraint ( item : ĠCountry Remote , Ġconstraint : ĠCharSequence ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġitem . name . contains ( constraint , Ġ/* Ġignore Case = Ġ*/ Ġtrue ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠE lection Regions Adapter ( context : ĠContext , Ġobjects : ĠList < E lection Region Remote >) ĊĠĠĠ Ġ: ĠFilter able Array Adapter < E lection Region Remote >( context , Ġobjects . to Mutable List ()) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Formatted Text For Item ( item : ĠE lection Region Remote ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ"${ item . code } Ġ${ item . name }" ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdoes Item Match Constraint ( item : ĠE lection Region Remote , Ġconstraint : ĠCharSequence ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġget Formatted Text For Item ( item ). contains ( constraint , Ġ/* Ġignore Case = Ġ*/ Ġtrue ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠM unicip al ities Adapter ( context : ĠContext , Ġobjects : ĠList < M unicip ality Remote >) ĊĠĠĠ Ġ: ĠFilter able Array Adapter < M unicip ality Remote >( context , Ġobjects . to Mutable List ()) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Formatted Text For Item ( item : ĠM unicip ality Remote ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġitem . name ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdoes Item Match Constraint ( item : ĠM unicip ality Remote , Ġconstraint : ĠCharSequence ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġitem . name . contains ( constraint , Ġ/* Ġignore Case = Ġ*/ Ġtrue ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠT own s Adapter ( context : ĠContext , Ġobjects : ĠList < Town Remote >) ĊĠĠĠ Ġ: ĠFilter able Array Adapter < Town Remote >( context , Ġobjects . to Mutable List ()) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Formatted Text For Item ( item : ĠT own Remote ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġitem . name ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdoes Item Match Constraint ( item : ĠT own Remote , Ġconstraint : ĠCharSequence ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġitem . name . contains ( constraint , Ġ/* Ġignore Case = Ġ*/ Ġtrue ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠCity Regions Adapter ( context : ĠContext , Ġobjects : ĠList < City Region Remote >) ĊĠĠĠ Ġ: ĠFilter able Array Adapter < City Region Remote >( context , Ġobjects . to Mutable List ()) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Formatted Text For Item ( item : ĠCity Region Remote ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġitem . name ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdoes Item Match Constraint ( item : ĠCity Region Remote , Ġconstraint : ĠCharSequence ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġitem . name . contains ( constraint , Ġ/* Ġignore Case = Ġ*/ Ġtrue ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠSe ctions Adapter ( context : ĠContext , Ġobjects : ĠList < Section Remote >) ĊĠĠĠ Ġ: ĠFilter able Array Adapter < Section Remote >( context , Ġobjects . to Mutable List ()) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Formatted Text For Item ( item : ĠSection Remote ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ"${ item . code } Ġ${ item . place }" ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdoes Item Match Constraint ( item : ĠSection Remote , Ġconstraint : ĠCharSequence ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġget Formatted Text For Item ( item ). contains ( constraint , Ġ/* Ġignore Case = Ġ*/ Ġtrue ) ĊĠĠĠ Ġ} Ċ }