package Ġcom . say ant an ban er j ee . transaction management app . presenter . Add Record Activity Package Ċ Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġcom . say ant an ban er j ee . transaction management app . domain . UseCase . Save Record UseCase Ċ Ċ class ĠAdd Record ViewModel Factory ( ĊĠĠĠ Ġprivate Ġval Ġsave Record UseCase : ĠSave Record UseCase Ċ ) Ġ: ĠViewModel Provider . Factory Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġ< T Ġ: ĠViewModel ?> Ġcreate ( model Class : ĠClass < T >): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠAdd Record ViewModel ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsave Record UseCase ĊĠĠĠĠĠĠĠ Ġ) Ġas ĠT ĊĠĠĠ Ġ} Ċ }