package Ġorg . ag or ah q . ag ora . core . api . service . impl Ċ Ċ import Ġorg . ag or ah q . ag ora . core . api . data . Entity Ċ import Ġorg . ag or ah q . ag ora . core . api . service . Query Service Ċ import Ġorg . hex works . cob alt . core . api . UUID Ċ import Ġorg . hex works . cob alt . datat ypes . Maybe Ċ Ċ class ĠIn Memory Query Service < E Ġ: ĠEntity >( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġobjects : ĠMutable Map < UUID , ĠE > Ċ ) Ġ: ĠBase Query Service < E >( objects ), ĠQuery Service < E > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠfindAll (): ĠSequence < E > Ġ= Ġobjects . values . as Sequence () ĊĊĠĠĠ Ġoverride Ġfun Ġfind ById ( id : ĠUUID ) Ġ= ĠMaybe . of Nullable ( objects [ id ]) Ċ Ċ }