package Ġcn . ber ber man . demo . event ĊĊ Ċ object ĠEvent Holder Ġ{ Ċ ĉ private Ġval Ġevents Ġ= Ġmutable ListOf < Pack ing Event <* >>() ĊĊ ĉ fun Ġadd ( packing Event : ĠPack ing Event <* >) Ġ= Ġevents . add ( packing Event ) Ċ ĉ fun Ġregister () Ġ= Ċĉĉ ĉ events . forEach ( Pack ing Event <* >:: register ) Ċ Ċ }