/** Ċ Ġ* ĠCreated Ġby Ġapp com Ġinteractive ĠGmbH Ġon Ġ 2 9 . 0 8 . 2 0 2 0 Ċ Ġ* ĠCopyright ĠÂ© Ġ 2 0 2 0 Ġapp com Ġinteractive ĠGmbH . ĠAll Ġrights Ġreserved . Ċ Ġ*/ Ċ Ċ package Ġde . nan og i ants . a 5 gar app . activities . po ide tail . adapters Ċ Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġde . nan og i ants . a 5 gar app . databinding . Item Opening hours Binding Ċ import Ġde . nan og i ants . a 5 gar app . databinding . Item Review Binding Ċ import Ġde . nan og i ants . a 5 gar app . model . entities . domain . Opening Hour Ċ import Ġde . nan og i ants . a 5 gar app . model . entities . domain . Review ĊĊ Ċ class ĠPO IO pen ing Hours Adapter Ġ: ĠRecyclerView . Adapter < PO IO pen ing Hours ViewHolder >() Ġ{ ĊĊĠ Ġprivate Ġvar Ġitems : ĠMutable List < Opening Hour > Ġ= Ġmutable ListOf () ĊĊĠ Ġoverride Ġfun ĠgetItem Count () Ġ= Ġitems . size ĊĊĠ Ġfun Ġadd All ( new Items : ĠCollection < Opening Hour >) Ġ{ ĊĠĠĠ Ġitems . addAll ( new Items ) ĊĠĠĠ Ġnotify DataSet Changed () ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun ĠonCreate ViewHolder ( parent : ĠViewGroup , Ġview Type : ĠInt ) Ġ= ĠPO IO pen ing Hours ViewHolder ( ĊĠĠĠ ĠItem Opening hours Binding . inflate ( ĊĠĠĠĠĠ ĠLayoutInflater . from ( parent . context ), ĊĠĠĠĠĠ Ġparent , ĊĠĠĠĠĠ Ġfalse ĊĠĠĠ Ġ) ĊĠ Ġ) ĊĊĠ Ġoverride Ġfun Ġon Bind ViewHolder ( holder : ĠPO IO pen ing Hours ViewHolder , Ġposition : ĠInt ) Ġ{ ĊĠĠĠ Ġholder . bind ( items [ position ]) ĊĠ Ġ} Ċ }