package Ġcom . j ota . sun sh ine . model . mapper Ċ Ċ import Ġcom . j ota . sun sh ine . domain . model . Forecast Ċ import Ġcom . j ota . sun sh ine . model . Forecast Model Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠFore cast Model Data Mapper Ġ@ Inject Ċ constructor ( private Ġval Ġweather Model Data Mapper : ĠWeather Model Data Mapper , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġprivate Ġval Ġmain Model Data Mapper : ĠMain Model Data Mapper ) Ġ: ĊĠĠĠĠĠĠĠ ĠEntry Model Mapper < Forecast Model , ĠFore cast >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġtransform ( model : ĠFore cast ?): ĠFore cast Model ? Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( model Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġforecast Ġ= ĠFore cast Model () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġforecast . dt Ġ= Ġmodel . dt ĊĠĠĠĠĠĠĠĠĠĠĠ Ġforecast . main Ġ= Ġmain Model Data Mapper . transform ( model . main ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġforecast . weather Ġ= Ġweather Model Data Mapper . transform ( model . weather ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġforecast ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġreturn Ġnull ĊĠĠĠ Ġ} Ċ }